Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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?
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.
Solved! Go to Solution.
Hi @oliverblane ,
Change the 'Format Style' option at the top from Rules to Field Value. Then you can select the measure you have created.
Hi @oliverblane ,
Change the 'Format Style' option at the top from Rules to Field Value. Then you can select the measure you have created.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |