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
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
Memorable Member
Memorable Member

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
Memorable Member
Memorable Member

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
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.

Top Solution Authors