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

Stacked bar chart with a legend - hide unselected bars

Hello,

 

I'm trying to achive a very simple task in Power BI and need some assistance.

 

I'm using a stacked bar chart with a legend.

 

However if I click on a legend I'd like to hide all non-selected bars in the chart and show only the selcted bars.

 

Even after some hours I'm struggling to find the setting to do so.

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@Anonymous 

 

I can suggest a workaround.

Create a slicer based on legend values.

 

Then select the slicer and on top Click on Format --> Edit Interactions

You will then notice 2 small icons on the top right of the chart. Click on the filtered icon.

Done

 

Image below:

Interaction.JPG

View solution in original post

2 REPLIES 2
v-xiaoyan-msft
Community Support
Community Support

Hi @Anonymous ,

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thank you very much for your kind cooperation!

 

Hope it helps,


Community Support Team _ Caitlyn

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

themistoklis
Community Champion
Community Champion

@Anonymous 

 

I can suggest a workaround.

Create a slicer based on legend values.

 

Then select the slicer and on top Click on Format --> Edit Interactions

You will then notice 2 small icons on the top right of the chart. Click on the filtered icon.

Done

 

Image below:

Interaction.JPG

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.