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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to show only sum of data in Stacked chart legend

Hi all,

I have a table like that .

 

Screenshot_1.png

 

 

 

 

 

 

 

 

 

 

 

 

I want to show only sum of legend at the end of chart. As in the example below

 

 

Screenshot_2.png




 

 

 

 

 

 

 

 

 

 

 

Is it possible to do this ? I'll be happy if anyone can help me

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you for your valuable support.

The idea you found was quite logical and I made some changes on your line and stacked column chart.

I created a duplicated of the chart. I unselected the Sum amount from new chart. Then it shows only sum of legends.

It looks like that.
Screenshot_3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Finally i superimposed two chart and hide legend, x-axis, y-axis and title from duplicated chart. Thats final state.
Screenshot_4.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

It's not a actual solution but for today it was fine for me 🙂

 

 

 

 

View solution in original post

2 REPLIES 2
Arentir
Resolver III
Resolver III

HI @Anonymous 

That is the closest I could get to your query

 

image.png

 

I used "Line and Stacked Column Chart" object. The column value is a regular sum. The line value is a sum ignoring the legend field. In here it is "Product" so the measure would be: SUM All Product = CALCULATE(SUM(Table1[Amount]),ALL(Table1[Product]) )

 

I have formated the line so it disappears: In Shape, have Stroke width = 0

image.png

 

I also changed the formatting of the data label so your total stands out.

 

It would be a good idea to open/vote an improvement to PBI Desktop . You can normally remove data label for either the line or column (perfect in your case), but the legend on the column prevent that!

 

My pbix file here

https://1drv.ms/u/s!As5oZCclkGkWgSZRM1Lujl5Psioa

 

Hope it helps though!

Anonymous
Not applicable

Thank you for your valuable support.

The idea you found was quite logical and I made some changes on your line and stacked column chart.

I created a duplicated of the chart. I unselected the Sum amount from new chart. Then it shows only sum of legends.

It looks like that.
Screenshot_3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Finally i superimposed two chart and hide legend, x-axis, y-axis and title from duplicated chart. Thats final state.
Screenshot_4.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

It's not a actual solution but for today it was fine for me 🙂

 

 

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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