cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alsasloren Member
Member

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

Accepted Solutions
alsasloren Member
Member

Re: How to show only sum of data in Stacked chart legend

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 Regular Visitor
Regular Visitor

Re: How to show only sum of data in Stacked chart legend

HI @alsasloren 

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!

alsasloren Member
Member

Re: How to show only sum of data in Stacked chart legend

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

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 441 members 4,653 guests
Please welcome our newest community members: