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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
amikm
Helper V
Helper V

Dynamic color for slicer

Hi All,

I am trying to achieve this in one of my reports. the scenario is -
I have a column say TrafficLight which has three values (1,2,3) and I am using that column as a slicer

I want to assign the color for 1, 2, and 3 as Red, Yellow, and Green.

When the user select 1 from the slicer color should become Red and 2 and 3 will be grayed out

Similarly when users select 2 from the slicer the color of 2 should become Yellow and 1 and 3 can be grayed out.

Same when users select 3 from slicer the color of 3 should be Green and 1 and 2 can be grayed out.

 

 

 

 

5 REPLIES 5
PaulDBrown
Community Champion
Community Champion

@amikm 

 

You could as a workaround use a table visual instead of a slicer visual (not ideal, but..)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Mariusz
Community Champion
Community Champion

Hi @amikm 

 

But you can combine slicer ( set background transparency to 100% ) with rectangle/shape object and apply conditional formatting there, please see the attached.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Hi @Mariusz,

 

Thanks for your workaround on conditional formatting for Slicer.
Suppose we have thee colors Red, Green, and Yellow and I am using that as a horizontal slicer.

 

If I click on Green, the color of the Selected slicer should change to Green and the Other two colors will be grayed out.
Same behavior with Red and Yellow selection I am looking for.

DynamicColor (2).png

Currently, you can see the background color is Black (which is the default behavior)

 

Amit

Mariusz
Community Champion
Community Champion

Hi @amikm 

 

Please see the attached file with a solution.

However, when using a slicer or visual you can only apply the formating to another visual ( you can not modify the visual that you have used to select values in, to my knowledge )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn


 

I agree with @Mariusz , I logged an issue for the same and it got rejected saying it is the default behavior

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors