Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi there,
I have a simple measure for a gauge that gives me the correct colour, depending on the value.
Solved! Go to Solution.
Hi @lherbert501 ,
According to your description, I create a sample.
SalesAverage is a measure.
Now, you can tweak the Gauge measure like this:
Gauge =
IF (
INT ( MAX ( 'Table'[Sales] ) ) >= INT ( [SalesAverage] ),
"#00A36C",
"#D64550"
)
Get the result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lherbert501 ,
According to your description, I create a sample.
SalesAverage is a measure.
Now, you can tweak the Gauge measure like this:
Gauge =
IF (
INT ( MAX ( 'Table'[Sales] ) ) >= INT ( [SalesAverage] ),
"#00A36C",
"#D64550"
)
Get the result.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@lherbert501 , Make sure both measures are 1 or two decimal places and not whole numbers
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |