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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Sum distinct values within a stacked bar chart

I am trying to see if its possible to sum distinct values and have it displayed within a stacked bar chart.

2 REPLIES 2
Anonymous
Not applicable

To clarify, I want to display the sum of a distinct value. Showing the total of the column would be incorrect as there are multiple repeat values associated with multiple Product ID's.

I want to know how I can pull the distinct Product ID and a distinct dollar amount and have the displayed within a stacked bar chart. 

amitchandak
Super User
Super User

@Anonymous , Stacked chart has an option to show total if needed

https://medium.com/@amitchandak/power-bi-when-total-label-on-stacked-visual-is-not-sufficient-72e5de0d0809

 

if you want add an additional bar , then you need to follow this approach

Power BI - Show Grand total row or Avg Grand total row in Visual: https://youtu.be/OSwRZ4GUhxc
https://medium.com/@amitchandak/power-bi-add-grand-total-row-in-the-bar-visual-44c3d1d463be

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.