Hi I had question about a basic beast mode calculation that is not behaving correctly

My beast mode calculation is here which is delivered margin define / qtymarketingforecast :
Here are the result but as you can see if you divide the delivered margin $ from qty marketing forecast you end up with a different value then you are supposed to:
Not sure what is causing the results to be off since the beast mode calculation is straight forward.
Answers
-
It looks like
Delivered Margin Define
is coming from a different BeastMode. What does that BeastMode look like? It is probably the culprit.Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0 -
Using:
Year,Season,VendorName,QtyMarketingForecast,DeliveredMarginDefine
2025,Spring,Vendor1,580,-68.23
2025,Spring,Vendor2,276,2548.93
2025,Summer,Vendor3,142,1050.75
2025,Fall,Vendor4,833,763.5
2025,Winter,Vendor5,902,-400** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
Even if I used the formula as you showed it, it should have worked. Are your fields numeric?
Example above would give the same output I showed in my formula screenshot.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
@Utz I generally recommend aggregating the numerator and denominator when using division in Beast Mode like this:
sum(`DeliveredMarginDefine`) / sum(`QtyMarketingForecast`)
Otherwise, the card is dividing each dataset row first before then summing them, resulting in unexpected outputs.
2 -
Thank you @MichelleH this worked I should have tried to sum them up myself but thank you for the help as always!
0 -
Thank you @DavidChurchman @ArborRose for the quick response yes both the fields were numeric and the delivered margin define function was just if delivered margin new = 0 then delivered margin else delivered margin new
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 663 Datasets
- 119 SQL DataFlows
- 2.3K Magic ETL
- 823 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 193 Apps
- 483 APIs & Domo Developer
- 87 Workflows
- 23 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 117 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive