Top clients requesting devices
Good day,
I want to create a beast mode statement that gives me a list of all the clients who have requested more than two devices each month. The final outcome would look like this:
Request Date | Individual_ID | # of Requests |
---|---|---|
2024-Jan | 12345 | 2 |
56789 | 3 | |
11234 | 4 | |
56789 | 2 | |
2024-Feb | 12345 | 5 |
56789 | 4 | |
11234 | 5 | |
56789 | 2 | |
So far this is what I have.
case WHEN YEAR(request_date
)=YEAR(CURRENT_DATE())-1 and MONTH(request_date
)=MONTH(CURDATE() and (COUNT(DISTINCTindividual_id
) >=2) THEN 'Top Requestor' ELSE 0 END
Thank you in advance,
Best Answers
-
You can just apply filters to the card, you don't need to include the logic in the beastmode. All you need is a table card filtered to the current year and filtered with COUNT(individual_id) > 2. Then in your table card add Request Date, Individual ID and Top Requester. Then aggregate the Top Requester field with a count.
If I solved your problem, please select "yes" above
0 -
I believe you can do this without doing any beast modes, but using the aggregation filter capabilities. Here's how:
- In your table card, drag in Request Date, Individual ID, and then Individual ID a 2nd time, but choose to Aggregate by Count.
- In your Date Range Filter, set your date range to use Request Date and graph by month.
- Drag Individual ID to the filters section and choose Aggregation and choose to Aggregate by count where it is greater than or equal to 2.
Your table card should now the results you are looking for.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0
Answers
-
You can just apply filters to the card, you don't need to include the logic in the beastmode. All you need is a table card filtered to the current year and filtered with COUNT(individual_id) > 2. Then in your table card add Request Date, Individual ID and Top Requester. Then aggregate the Top Requester field with a count.
If I solved your problem, please select "yes" above
0 -
I believe you can do this without doing any beast modes, but using the aggregation filter capabilities. Here's how:
- In your table card, drag in Request Date, Individual ID, and then Individual ID a 2nd time, but choose to Aggregate by Count.
- In your Date Range Filter, set your date range to use Request Date and graph by month.
- Drag Individual ID to the filters section and choose Aggregation and choose to Aggregate by count where it is greater than or equal to 2.
Your table card should now the results you are looking for.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive