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
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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors