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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
SevsBo
Resolver I
Resolver I

"Total labels" greyed out & disappear from Stacked column chart after filtering

I have a Stacked column chart with X & Y axis populated and Legend further breaking down the visual. I have Total labels on and this is working fine, as per the screenshot below.

 

SevsBo_0-1733326639352.png

 

 

But when I filter the data by the same column that is in the Legend field, my totals disappear. I can only get them back if I instead turn on Data labels as a whole, which I do not want as it will show unecessary data when results are not filtered.

 

SevsBo_1-1733326670639.png

 

 

Is there a way to show Total lables even when results are filtered to a single selection?

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @SevsBo ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1733365814680.png

(2) We can create a slicer table. Note that there is no model relationship between this table and the original table.

Table 2 = SUMMARIZE('Table',[type])

vtangjiemsft_1-1733365893796.png

(3) We can create measures.

value measure = CALCULATE(SUM('Table'[value]),FILTER('Table',[type] in VALUES('Table 2'[type])))
label measure = IF(ISFILTERED('Table 2'[type])=FALSE(),BLANK(),[value measure])

(4) Then the result is as follows.

vtangjiemsft_2-1733366127921.png

vtangjiemsft_3-1733366146920.png

 

 

Best Regards,

Neeko Tang

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

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @SevsBo ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1733365814680.png

(2) We can create a slicer table. Note that there is no model relationship between this table and the original table.

Table 2 = SUMMARIZE('Table',[type])

vtangjiemsft_1-1733365893796.png

(3) We can create measures.

value measure = CALCULATE(SUM('Table'[value]),FILTER('Table',[type] in VALUES('Table 2'[type])))
label measure = IF(ISFILTERED('Table 2'[type])=FALSE(),BLANK(),[value measure])

(4) Then the result is as follows.

vtangjiemsft_2-1733366127921.png

vtangjiemsft_3-1733366146920.png

 

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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