Charting

Charting

Can the Bar Total Label be the Total % of the bar instead of the integer?

Member

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!

image.png

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In

Comments

  • 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.

  • Contributor

    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:

    image.png

    ✅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"!

  • Member

    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:

    1. case
    2. when `PPM Number_p` LIKE '%PPM%' then 'Build'
    3. when `PPM Number_p` LIKE '%SCPX%' then 'Build'
    4. when `PPM Number_p` LIKE '%INFRA%' then 'Build'
    5. when `PPM Number_p` = 'IT00001' then 'Build'
    6. else 'Run'
    7. end

    For the series, I use this code:

    1. case
    2. when `PPM Number_p` <> 'IT00022' then
    3. case
    4. when `PPM Number_p` LIKE '%PPM%' then 'Projects'
    5. when `PPM Number_p` LIKE '%SCPX%' then 'Enhancements'
    6. when `PPM Number_p` LIKE '%INFRA%' then 'Enhancements'
    7. when `PPM Number_p` = 'IT00001' then 'Enhancements'
    8. when `PPM Number_p` = 'IT00011' then 'Business Partnering'
    9. when `PPM Number_p` = 'IT00006' then 'Support'
    10. else 'Internal IT Time'
    11. end
    12. else 'Absence'
    13. end

    Then 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.

    image.png
  • edited April 17

    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.

  • Member

    Hi David, perfect, thank you!

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In