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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Russo
Frequent Visitor

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
Resident Rockstar
Resident Rockstar

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
Russo
Frequent Visitor

Thanks much, works great!

MasonMA
Resident Rockstar
Resident Rockstar

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

 

 

 

 

Helpful resources

Announcements
Top Solution Authors