Beastmode Help: Determine if order is <= $50,000
I've got a dataset that contains order data at the line item level. An order could have 1, or many items. I need to create a flag column that indicates if the total order value is <= 50,000. Would like to do this with a Beastmode if possible.
The unique identifier in this case is the order number, and the extended price is the column that contains the value for each item on the order that needs to be totalled to calculate the total order value.
Example attached.
Thanks in advance for your help!
Best Answers
-
I absolutely get where you are going with the ask. In order to filter and search on that flag, I'd recommend that you run your dataset through a Magic ETL DataFlow and use a window function to partition based on the unique order number, like you mentioned. You can find documentation for that here- https://knowledge.domo.com/Prepare/Magic_Transforms/ETL_DataFlows/03ETL_Actions%3A_Rank_and_Window
This will add on another column on your dataset that will tell you that total. Then you can build a simple case statement to flag based on that $50,000 rule.
2 -
@GTA thanks again for the feedback. I have inplemented the solution you offered.
Here is a short video overview of how I implemented the Window function in case others want to see this in action.
0
Answers
-
I absolutely get where you are going with the ask. In order to filter and search on that flag, I'd recommend that you run your dataset through a Magic ETL DataFlow and use a window function to partition based on the unique order number, like you mentioned. You can find documentation for that here- https://knowledge.domo.com/Prepare/Magic_Transforms/ETL_DataFlows/03ETL_Actions%3A_Rank_and_Window
This will add on another column on your dataset that will tell you that total. Then you can build a simple case statement to flag based on that $50,000 rule.
2 -
Thanks for the quick reply!
Really hoping to find a solution for this with a Beastmode. Would be a much faster solution to implement if it's possible.
1 -
@GTA thanks again for the feedback. I have inplemented the solution you offered.
Here is a short video overview of how I implemented the Window function in case others want to see this in action.
0 -
Great seeing you in ATL and thank you for making the drive down!
This is great!!
CC: @tallbaldfilmguy @hrh514 from our Domo Edcuation team
0 -
Hi
You could use a Beastmode but it would not work unless you group by Order on the card (like the second box on you xls example.
Case when sum($) > 50000 then 'Yes' else 'No' end
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive