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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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