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
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 813 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive