Percent of Total on Table Chart
Comments
-
You'll need to edit your ETL process to add a column that provides the 'Total' for that metric and repeats it for each row.
Example:
Measure Total
1 10
4 10
5 10
Then at the card level you can do
SUM(`Measure`) / MAX(`Total`) * 100
That will give the 'Percent of Total' you're looking for.
Let me know if you have any other questions,
Valiant
0 -
That being said. I think that a cross table is a fairly common analytical tool that seems to be missing from Domo currently. I think I'll add this as a feature request. Cross Table Card
You can vote for the idea here: https://dojo.domo.com/t5/Ideas-Exchange/Cross-Table-Card/idi-p/35262#M6648
0 -
Hello, Valiant,
I did the % calculation as you suggested and got the %. However, for my table card, if I only want to see top 10 rows and % calcualtion is based on the total of the top10. Is there a way to do this?
Thank you.
Olivia
1 -
You can use SQL functions in Beastmode (not documented though).
Try this:
SUM('field name')/SUM(SUM('field name')) OVER ()
4 -
Love it - thanks for posting!
0 -
If you haven't worked with Windowed Functions before, I give a longer (15min) answer on YouTube for a related use case.
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"2 -
@simontarry76 Thank you so much for posting this! It was an absolute game changer and saved us trying to customize a dataflow to support about 10 different % of total dimension combinations.
0
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 302 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 104 SQL DataFlows
- 637 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 762 Beast Mode
- 65 App Studio
- 42 Variables
- 704 Automate
- 182 Apps
- 458 APIs & Domo Developer
- 53 Workflows
- 11 DomoAI
- 39 Predict
- 16 Jupyter Workspaces
- 23 R & Python Tiles
- 401 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 8 Software Integrations
- 132 Manage
- 129 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive