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 September 15. Request your voucher.

Reply
Anonymous
Not applicable

Conditionally Format Values Based on User Defined Values

Hey Guys,

 

Pretty stumped on this one after spending a day watching videos, can't quite find anything to solve what feels like an easy issue, maybe I am completely out thinking myself. 

 

My example data is below. I'd prefer to use the target table as the conditions if possible. 

 

What I need is this:
If "service level" for alpha is > 90, green font, else red font. 

If "service level" for beta is > 85, green font, else red font.

...

...

and so on  

 

I haven't found anything on measures using specific data values, just the column as a whole which lumps these all together and won't work. Help

 

 powerbiexample.png       powerbidata2.png

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Assuming you have a table with the priority field and values to calculate the [Service level] measure & a target table as shown, with this model:

 

model.PNG

and this measure to use for field in the conditional formatting options:

Condit Format = IF([Service Level] > SELECTEDVALUE(Targets[Target]), "Green", "red")

Add the priority field from the target table to the visual & the [Service Level] measure, and the apply the conditional formatting using the measure above to get:

result.PNG

I've attached a sample PBIX file





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.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

Assuming you have a table with the priority field and values to calculate the [Service level] measure & a target table as shown, with this model:

 

model.PNG

and this measure to use for field in the conditional formatting options:

Condit Format = IF([Service Level] > SELECTEDVALUE(Targets[Target]), "Green", "red")

Add the priority field from the target table to the visual & the [Service Level] measure, and the apply the conditional formatting using the measure above to get:

result.PNG

I've attached a sample PBIX file





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.






Anonymous
Not applicable

Thank you so much! This works beautifully. I really appreciate it

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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