This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I'm trying to do conditional formatting with a traffic light column in my matrix.
This is what the traffic light is based on:
0-5% variance = GREEN
6-10% variance = ORANGE
11%+ variance =RED
I'd read on other forums because I was working with negative percentage variances so have been using:
95-100% -> -0.05 to 1
90-94% -> -0.16 to 0.1
89-0< -> -0.11
However, there is an error in one of my outputs -0.06 where it should be ORANGE instead of black. Everything else is correct.
How do I fix this?
Solved! Go to Solution.
Hi @Caiz ,
If value is less than -0.06 means value <-0.06 not value <= -0.06. You can try to set if value is less than -0.055.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Caiz ,
I made a number axis chart. As you can see in the figure, -0.06 is not within the condition range, so it is black.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous , I have changed the rule for Orange:
However, it still remains black.
Hi @Caiz ,
If value is less than -0.06 means value <-0.06 not value <= -0.06. You can try to set if value is less than -0.055.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Caiz , Might need data /pbix to check that.
You can create a color measure like this.
Switch(True(),
[% variance] >-0.005 , "green",
[% variance] >-0.01 , "orange",
[% variance] >-1 , "red",
"blue"
)
and use that in coditional formatting, after using "Field Value" option
refer
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 30 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 60 | |
| 48 | |
| 29 | |
| 23 | |
| 23 |