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

Highlight slicer/filter when in use

Hi,

is there an easy way to change the colour of a (header of a) slicer when it´s in use? For example when nothing is selected/filtered it`s blue but if I choose one (or more) options it changes its colour to red? I already tried it via conditional formatting with a measure but it`s unfortunately not working. Would be a great way to make a report more transparent and clearer. Thanks for helping me out!

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @Anonymous ,

>>is there an easy way to change the colour of a (header of a) slicer when it´s in use? 

Current power bi not support do conditional formatting on slicer visual and cusotm visual header.

If you mean use slicer to formatting other visuals(table, matrix), you need to confirm slicer not have relationship to source table, then you can write a measure to compare selected value and current row content to return color code.
After these steps, you can enable conditional formatting on your value fields based on above measure with conditional formatting 'field value' mode.

Conditional formatting in tables

If you are confused on coding formula, please share some sample data for test.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.