Why is my grand total a negative?
I am trying to find out why the total is -$379,041. If you add up Week Ending Dates for the Test 1 Forecast, it should equal $710,766. What am I missing?
Best Answers
-
The issue is I had to use a join in ETL of add a forecast, which I am calling Direct Hire GP. And the $363,269 populated on each line, so I just to show the $363,269 one time.
0 -
Okay, I think this is what you'd want for your Test 1 Forecast beastmode:
SUM(AVG(`Test`) FIXED(BY
Week Ending Date
)) - SUM(`Test 1`)That first half sums the average of
Test
, fixed by week. I use the average so we get 363K once, and then fix it by week so that it uses the average for each week, summing across those weeks.Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0
Answers
-
You've redacted the values fields. How are they aggregating? Are they beast modes? Tell us more
If I solved your problem, please select "yes" above
0 -
Coleman is right that you'll need to share more about your BeastModes to give a full answer, but what what appears to be happening is that you are subtracting the two columns. The first column is unchanging and the second isn't. The resulting grand total is the difference between the unchanging value and the sum of the changing values 363K - (148K+194K+219K+182K)=-379K.
My guess would be the first column is an average and the second is a sum. Or it might be the first is not fixed by week and the second is fixed by week. You need to adjust the first part of your
Test 1 Forecast
BeastMode to be able to aggregate across the weeks. I would start with that part and test it until you get 363K *4 instead of 363K. Then add in the part of the BeastMode where you subtract the other part, as that appears to already be working.Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0 -
Thank you for the comments. Below are my columns. I am assuming the issue is that my first column is a Sum/distinct. Is there a way I can get an accurate total?
First Column
Third Column
0 -
SUM(DISTINCT) is only adding up the distinct values. In this case, all the values are the same, so it just returns 363K, where you want it to return 363K*4 for the four weeks.
Depending on why you are doing a SUM(DISTINCT) rather than a SUM(), you might be able to resolve this by just doing a SUM(). Or you might need a SUM(AVG() FIXED(BY ) ) if there is a reason you need to keep it DISTINCT, where the BY is the Week or whatever category defines how you need the sum to aggregate.
Here's the KB on FIXED functions: https://domo-support.domo.com/s/article/4408174643607?language=en_US
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0 -
The issue is I had to use a join in ETL of add a forecast, which I am calling Direct Hire GP. And the $363,269 populated on each line, so I just to show the $363,269 one time.
0 -
Okay, I think this is what you'd want for your Test 1 Forecast beastmode:
SUM(AVG(`Test`) FIXED(BY
Week Ending Date
)) - SUM(`Test 1`)That first half sums the average of
Test
, fixed by week. I use the average so we get 363K once, and then fix it by week so that it uses the average for each week, summing across those weeks.Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0 -
Thank you!
0
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 303 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 104 SQL DataFlows
- 640 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 767 Beast Mode
- 70 App Studio
- 43 Variables
- 716 Automate
- 185 Apps
- 461 APIs & Domo Developer
- 56 Workflows
- 14 DomoAI
- 39 Predict
- 16 Jupyter Workspaces
- 23 R & Python Tiles
- 402 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 134 Manage
- 131 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive