Total row sum % instead of doing the % calculation
Hi,
I use one beastmode to give me the MTD % of achievement vs the MTD Target.
On one card it work with this rule :
sum(`product_A`)/(SUM(DISTINCT `product_a_Target_dly`)*DAY(CURDATE()))
So it's giving me the MTD % even in the total row.
I use the same formula on another card but with product_B.... and the total row show me a sum of all the percentage instead of doing the calculation.
I don't find what I'm doing bad.... is there a way for the total row to apply the calculation and not summing it ?
PS : If i put over () at the end... it work but then the % if wrong for all the store. Only the total row become good.
Thanks :)
Comments
-
Hi @Adrien
the total row is calculated on the card after the beast mode is calculated so it’s adding your percentages instead of calculating your total percentage.
if you want a total row you need to use an ETL to group your data together and sum all your columns using a group by tile then using an add constant tile put the value of total in your label field then append this row to your original dataset. Now your beast mode will work for the “total” row without telling your card to do the total row on it (it’s now included in your dataset)
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2 -
oh I see !
Will do that :)
Thank you !
0 -
@Adrien most days of the week if you're doing SUM(DISTINCT) you've designed your data ... poorly. usually this happens b/c people JOIN their Actuals to Daily_Forecast and then use SUM(DISTINCT) to avoid double counting targets.
Don't. UNION your datasets.
If you continue the road you're on, if you had two separate products with different daily forecast OR if you had the same forecast across two days, you'd misrepresent your forecast.
https://www.youtube.com/watch?v=PVbOeLSae9o&t=252s consider this alternative.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Oh great video !! I have taken a lot of notes haha
Thanks a lot !
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
- 56 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