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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Russo
New Contributor III

Conditional formatting for guage color vs. target

Hello,

 

Is it possible to set my guage color to green if > target value and red if <.  I'm using measures to get my values, so no table data.  How would I achieve this if possible?

Russo_0-1756480518501.png

 





1 ACCEPTED SOLUTION
MasonMA
Valued Contributor II

Hello @Russo 

 

You’ll need a DAX measure that returns a color name or hex code based on the comparison:

IF([ActualValue] <= [TargetValue], "#00B050", "#FF0000")

Set up the 'Fill Color' in Format Pane with this Measure as Field value. 

MasonMA_1-1756482342940.png    MasonMA_2-1756482381842.png  MasonMA_3-1756482453639.png  MasonMA_4-1756482481222.png

 

 

 

 

View solution in original post

2 REPLIES 2
MasonMA
Valued Contributor II

Hello @Russo 

 

You’ll need a DAX measure that returns a color name or hex code based on the comparison:

IF([ActualValue] <= [TargetValue], "#00B050", "#FF0000")

Set up the 'Fill Color' in Format Pane with this Measure as Field value. 

MasonMA_1-1756482342940.png    MasonMA_2-1756482381842.png  MasonMA_3-1756482453639.png  MasonMA_4-1756482481222.png

 

 

 

 

Russo
New Contributor III

Thanks much, works great!

Helpful resources

Announcements
Top Solution Authors
Users online (12,086)