Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ajitsahoo8338
Helper III
Helper III

Totals is not showing correct values in Stacked Bar Chart

Hello Everyone,
Below is my data for the Total Percent Complete for each project, based on disciplines like Mech, Elec, and Fluid.

ajitsahoo8338_0-1741844459206.png

But the issue I am facing is that if I do a stacked Bar chart, why are the totals of each bar/Project showing the wrong total percent complete? How can I fix this?

ajitsahoo8338_1-1741844551840.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @ajitsahoo8338 

The "Total" feature in stacked bar charts in Power BI works automatically and simply sums up the individual parts without allowing direct control over its logic.

To modify this behavior, you need to create a dummy category named "Total" using DAX, where the calculation follows the required logic. Then, add this "Total" as an additional part of the stacked bar, ensuring it has a transparent or white background to blend seamlessly.

UX Perspective:

The current stacked bar chart is not an effective visualization for this scenario for several reasons:

  1. Each bar is perceived as a whole (100%), and just like Power BI’s engine, users' brains will add up the percentages, resulting in a misleading visual that exceeds 100%.

  2. Comparing values within the bars is difficult since only the first segment starts at a common baseline. Users struggle to compare other segments accurately.

  3. The legend requires constant back-and-forth reference, forcing users to decode colors instead of quickly understanding the data.

All these issues combined make the visualization more confusing rather than helpful in conveying the relationships between data points.

Alternative Solution:

A better approach is to separate the bars and use a combined table + bar chart visualization, similar to the image.

Ritaf1983_0-1741846347346.png

 

For further details, technical instructions, and a downloadable file, check out my blog post here:
🔗 https://www.madeiradata.com/post/home-experiments-and-stacked-bar-graphs

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

4 REPLIES 4
v-saisrao-msft
Community Support
Community Support

Hi @ajitsahoo8338,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @ajitsahoo8338 ,

 

We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.

 

Thank you.

 

v-saisrao-msft
Community Support
Community Support

Hi @ajitsahoo8338,
I wanted to check if you had the opportunity to review the information provided by @Ritaf1983. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Ritaf1983
Super User
Super User

Hi @ajitsahoo8338 

The "Total" feature in stacked bar charts in Power BI works automatically and simply sums up the individual parts without allowing direct control over its logic.

To modify this behavior, you need to create a dummy category named "Total" using DAX, where the calculation follows the required logic. Then, add this "Total" as an additional part of the stacked bar, ensuring it has a transparent or white background to blend seamlessly.

UX Perspective:

The current stacked bar chart is not an effective visualization for this scenario for several reasons:

  1. Each bar is perceived as a whole (100%), and just like Power BI’s engine, users' brains will add up the percentages, resulting in a misleading visual that exceeds 100%.

  2. Comparing values within the bars is difficult since only the first segment starts at a common baseline. Users struggle to compare other segments accurately.

  3. The legend requires constant back-and-forth reference, forcing users to decode colors instead of quickly understanding the data.

All these issues combined make the visualization more confusing rather than helpful in conveying the relationships between data points.

Alternative Solution:

A better approach is to separate the bars and use a combined table + bar chart visualization, similar to the image.

Ritaf1983_0-1741846347346.png

 

For further details, technical instructions, and a downloadable file, check out my blog post here:
🔗 https://www.madeiradata.com/post/home-experiments-and-stacked-bar-graphs

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.