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

The Fabric community is now in read-only for platform upgrade. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.