Replicating multiple Excel Calculations as rows of data - Beast Mode?

Hello,
I've got multiple datasets (actually customers) that we calculate a few things with separately. I was able to get all of the datasets (customers) combined so they could all be on one table:
Typically what I do in excel is from those numbers I'll pull a few different things out:
I'd like to basically mimic these calculations into domo and display them cleanly (likely a table). How would I go about writing a beast mode/formula for these?
- Sum of Total margin for dataset (A, B, C) divided by 2
- Sum of Total margin for dataset (A, B)
- (Sum of Total margin for dataset (A, B, C) divided by 2) minus (Sum of Total margin for dataset (A, B) )
I believe this would be a CASE WHEN? But I'm not totally sure how to layer in the dataset conditions and the sum, divide, minus actions. For context I also have multiple other datasets beyond A, B, C - so that table is just filtered to those for display and I will end up doing very similar calculations on other datasets D, E, F, etc.
Thanks so much!
Answers
-
- Sum of Total margin for dataset (A, B, C) divided by 2:
SUM(`Total Margin`) / 2
- Sum of Total margin for dataset (A, B):
SUM(CASE WHEN UPPER(`Dataset`) IN('A','B') THEN `Total Margin` ELSE 0 END)
- (Sum of Total margin for dataset (A, B, C) divided by 2) minus (Sum of Total margin for dataset (A, B) )
(SUM(`Total Margin`) / 2) - SUM(CASE WHEN UPPER(`Dataset`) IN('A','B') THEN `Total Margin` ELSE 0 END)
You could also use Nested Beast Modes for this last one. It's as easy as referencing the newly created beastmodes in a new beastmode, something like:
`Beastmode 1 Name` - `Beastmode 2 Name`
If I solved your problem, please select "yes" above
0 - Sum of Total margin for dataset (A, B, C) divided by 2:
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 310 Workbench
- 7 Cloud Amplifier
- 9 Federated
- 3K Transform
- 113 SQL DataFlows
- 654 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 796 Beast Mode
- 78 App Studio
- 44 Variables
- 757 Automate
- 188 Apps
- 480 APIs & Domo Developer
- 72 Workflows
- 17 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 408 Distribute
- 119 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 141 Manage
- 137 Governance & Security
- 8 Domo Community Gallery
- 47 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive