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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
manjirit
Helper I
Helper I

Using legends as slicers or turning slicers into dual purpose - slicers + legends

Hello,

 

So Power BI lets you select a legend from a group of legends and highlight that particular items on the chart which was selected in the legend. 

Instead of letting legends act as highlighters, can I turn them to slicers so that I don't need another slicer for the items on the legend?

 

Or

 

Is there a way to color code each item in a slicer as a way to turn it into legend + slicer?

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @manjirit,

 

Instead of letting legends act as highlighters, can I turn them to slicers so that I don't need another slicer for the items on the legend?

 

You can directly add the legend field into slicer so that you can filter chart based on legend selection. But what do you mean "don't need another slicer for the items"? Do you mean you have already created an slicer? If so, you could sonsider using Hierarchy Slicer custom visual which is downloaded from Visuals Gallery.
1.PNG

 

Is there a way to color code each item in a slicer as a way to turn it into legend + slicer?

 

If I understand correctly, you want to add the legend into slicer, and display each slicer item with dofferent color. So that, there is no need to show legend items on the top of chart, right? If so, it is not possible to achieve that currently.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @manjirit,

 

Instead of letting legends act as highlighters, can I turn them to slicers so that I don't need another slicer for the items on the legend?

 

You can directly add the legend field into slicer so that you can filter chart based on legend selection. But what do you mean "don't need another slicer for the items"? Do you mean you have already created an slicer? If so, you could sonsider using Hierarchy Slicer custom visual which is downloaded from Visuals Gallery.
1.PNG

 

Is there a way to color code each item in a slicer as a way to turn it into legend + slicer?

 

If I understand correctly, you want to add the legend into slicer, and display each slicer item with dofferent color. So that, there is no need to show legend items on the top of chart, right? If so, it is not possible to achieve that currently.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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