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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
oliverblane
Helper III
Helper III

Conditional Formatting Gauge Visual Using Measure as Threshold Value

I am trying to conditionally format a percentage Gauge visual to have a red fill when the percentage is less than a variable measure, and green when greater than or equal to the variable measure.

 

The variable measure is the fraction of the year that has passed so far. For example, on March 31st 2022, the variable measure would be roughly = 3 months / 12 months = 0.25 = 25%. Therefore the fill should be red if the value on the Gauge < 25%, or green if the value >= 25%.

 

In conditional formatting I can see an option to use a fixed number as the threshold, but no option to use a measure as a threshold. Am I missing something here?

 

oliverblane_1-1655293292566.png

Thanks for any help on this!

 

EDIT: As a temporary workaround I have created a measure called "Colour" which uses a SWITCH() to decide the colour.

1 ACCEPTED SOLUTION
johncolley
Solution Sage
Solution Sage

Hi @oliverblane ,

 

Change the 'Format Style' option at the top from Rules to Field Value. Then you can select the measure you have created.

View solution in original post

1 REPLY 1
johncolley
Solution Sage
Solution Sage

Hi @oliverblane ,

 

Change the 'Format Style' option at the top from Rules to Field Value. Then you can select the measure you have created.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.