Can the Bar Total Label be the Total % of the bar instead of the integer?
Example, I have this chart below, and when I turn on Data Label Settings > Show Total Label, there does not seem to be any options; it just defaults to showing the total of the raw numbers. However, I want to show the total % of each bar at the top, i.e. I want the blue Build bar to total 69.4% and the yellow Run bar 30.61%. Is there a way to show those two numbers above the bars instead of what we see below?
Thanks!
Best Answer
-
You need to write a BeastMode for your Y-axis to format it all as percentages. It will probably be something like:
sum(Aloc..)/Sum(SUM(Aloc..) FIXED())
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
1
Answers
-
I think instead of bringing in the total and selecting the 'percent_of_total' label, you'd need to calculate the percent of total first, and use that as the value. Then your totals would appear correctly.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
1 -
Hi PJG,
Do you need the series data included? Does "Build" need to include 'Enhancements' and 'Projects'? Does "Run" need to include 'Support', 'Business Partnering', and 'Internal IT Time'?
If not, then you can just use a Data Label Text of Percent of total like so:
✅Did this solve your problem? Accept it as a solution!
❤️Did you love this answer? Mark it as "Awesome"!
👍Do you agree with this process? Click "Agree"!
0 -
Hi Devon, yes, I do need the series included, and I added some Beast Mode to specifically show that. For the X Axis, I use this code:
case
when `PPM Number_p` LIKE '%PPM%' then 'Build'
when `PPM Number_p` LIKE '%SCPX%' then 'Build'
when `PPM Number_p` LIKE '%INFRA%' then 'Build'
when `PPM Number_p` = 'IT00001' then 'Build'
else 'Run'
endFor the series, I use this code:
case
when `PPM Number_p` <> 'IT00022' then
case
when `PPM Number_p` LIKE '%PPM%' then 'Projects'
when `PPM Number_p` LIKE '%SCPX%' then 'Enhancements'
when `PPM Number_p` LIKE '%INFRA%' then 'Enhancements'
when `PPM Number_p` = 'IT00001' then 'Enhancements'
when `PPM Number_p` = 'IT00011' then 'Business Partnering'
when `PPM Number_p` = 'IT00006' then 'Support'
else 'Internal IT Time'
end
else 'Absence'
endThen I filter out Absence.
Hi David, where do I do that? I have this option, but it's not letting me point to any specific value; it's just checked or unchecked.
0 -
You need to write a BeastMode for your Y-axis to format it all as percentages. It will probably be something like:
sum(Aloc..)/Sum(SUM(Aloc..) FIXED())
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
1 -
Hi David, perfect, thank you!
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 308 Workbench
- 7 Cloud Amplifier
- 10 Federated
- 3.8K Transform
- 660 Datasets
- 117 SQL DataFlows
- 2.2K Magic ETL
- 818 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 84 App Studio
- 46 Variables
- 781 Automate
- 191 Apps
- 483 APIs & Domo Developer
- 84 Workflows
- 23 Code Engine
- 43 AI and Machine Learning
- 22 AI Chat
- 3 AI Projects and Models
- 18 Jupyter Workspaces
- 408 Distribute
- 116 Domo Everywhere
- 281 Scheduled Reports
- 11 Software Integrations
- 146 Manage
- 142 Governance & Security
- 8 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 115 Community Announcements
- 4.8K Archive