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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
wonka1234240
New Member

Each stacked bar does not sum correctly, not considering negative values.

Hi,

 

I have this in my stacked bar - 

wonka1234240_0-1738718737481.png

 

this is my data -

segmentquartermillions_try
jeansQ1/24 1,154,000,000.00
tshirtQ1/24 1,353,000,000.00
jacketQ1/24    650,000,000.00
socksQ1/24    664,000,000.00
underwearQ1/24    220,000,000.00
tiesQ1/24   (459,000,000.00)

 

which sums to 

         3,582,000,000.00

 

however my stacked bar looks as if it is 4,000,000,000, when it should be around the 3,500,000,00. 

 

Seems like the bar isnt taking into account the negative values when summing the x-axis.

 

Anything I can do here?

 

wonka1234240_1-1738718963357.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

Thanks for the solution Sahir_Maharaj  offered, and i want to offer some more information for user to refer to.

hello @wonka1234240 , after testing, the calculation is right, you can open the total label, then set the display units to none

vxinruzhumsft_0-1738808080901.png

vxinruzhumsft_5-1738808574541.png

 

The total is right

If you want to look close to that value visually, you can adjust the maximum range of the x-axis, for example, 3.6bn.

vxinruzhumsft_2-1738808482242.png

 

Output

vxinruzhumsft_3-1738808532074.png

 

Best Regards!

Yolo Zhu

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

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

Thanks for the solution Sahir_Maharaj  offered, and i want to offer some more information for user to refer to.

hello @wonka1234240 , after testing, the calculation is right, you can open the total label, then set the display units to none

vxinruzhumsft_0-1738808080901.png

vxinruzhumsft_5-1738808574541.png

 

The total is right

If you want to look close to that value visually, you can adjust the maximum range of the x-axis, for example, 3.6bn.

vxinruzhumsft_2-1738808482242.png

 

Output

vxinruzhumsft_3-1738808532074.png

 

Best Regards!

Yolo Zhu

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

 

 

 

Sahir_Maharaj
Super User
Super User

Hello @wonka1234240,

 

Your stacked bar chart is incorrectly ignoring negative values, leading to a total that appears larger than it should be.

 

The best way to properly show positive and negative contributions is to use a Waterfall Chart, which correctly visualizes increases and decreases.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors