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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mclawler
Helper III
Helper III

Conditional Formatting Threshold Based on Slicer Selection

I'm familiar with setting Conditional Formatting.  But I'm trying to set different parameters dependant upon the slicer selection. 

 

For example:  Without any person selected it shows the Team's metrics as a whole (560 Answered, top middle card).  If the Answered metric is above 500 for the Team I'd like the card to turn Green, and if the Answered metric for the Team is <= 500 I'd like the card to turn Red.  That's pretty standard and easy to do.  

 

I would like for the above Rule to remain in effect however, if a person on the slicer is selected then I'd like the Answered threshold to change from 500 to 75.  Or to take it even further, indidualize the threshold for each individual person.  

 

Thank you so much for your time! 

 

mclawler_0-1695170155882.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mclawler , Create a measure based on requirement and use that in field value based conditional formatting

 

If (calculate(isfiltered(Table[person]), allselected()), if([Measure] < 75, "red", "green") , if([Measure] < 500, "red", "green") )

 

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mclawler , Create a measure based on requirement and use that in field value based conditional formatting

 

If (calculate(isfiltered(Table[person]), allselected()), if([Measure] < 75, "red", "green") , if([Measure] < 500, "red", "green") )

 

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

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

This worked beautifully!!  Thank you

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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