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
Dears,
i've the following column with some %, and i applied a conditional formating, but the colors are not as the ones i defined in the conditional formating below. can someone help me with this please?
Thanks.
Solved! Go to Solution.
Hi @Zakaria_1980 ,
Please create a measure as below and set the conditional formatting as below screenshot:
Cond Formatting =
SWITCH (
TRUE (),
[-Planning Accuracy_BVP (BP vs AC)] < 0.5, "Red",
[-Planning Accuracy_BVP (BP vs AC)] < 0.9, "Orange",
"Green"
)
If the above one is not working for your scenario, please share some sample data or your simplified pbix file(exclude sensitive data) in order to provide you a suitable solution. Thank you.
Best Regards
Try changing the order of the IFs in the conditional cormatting:
First: less the 50%
Second: less than 90%
Third: less than 100%
Or
Create a measure to use for the field value in the conditional formatting:
Cond Formatting =
SWITCH([Planning accuracy measure],
< 0.5, "Red",
< 0.9, "Orange",
"Green")
Proud to be a Super User!
Paul on Linkedin.
even if i changed the order it still the same.
when i created the measure, it gives to me unexpected expression for the "<"
Apologies. It should be:
Cond Formatting =
SWITCH ( TRUE() ,
[Planning accuracy measure]< 0.5, "Red",
[Planning accuracy measure]< 0.9, "Orange",
"Green")
Proud to be a Super User!
Paul on Linkedin.
Thanks alot, where shoud I put this measure please ?
In the conditional formatting interface, select Field and add the measure
Proud to be a Super User!
Paul on Linkedin.
it won't be selected see below snapshot
Like this...
Proud to be a Super User!
Paul on Linkedin.
i don't know why it won't pick measures to click on OK.
Hi @Zakaria_1980 ,
Please create a measure as below and set the conditional formatting as below screenshot:
Cond Formatting =
SWITCH (
TRUE (),
[-Planning Accuracy_BVP (BP vs AC)] < 0.5, "Red",
[-Planning Accuracy_BVP (BP vs AC)] < 0.9, "Orange",
"Green"
)
If the above one is not working for your scenario, please share some sample data or your simplified pbix file(exclude sensitive data) in order to provide you a suitable solution. Thank you.
Best Regards
Check out the April 2026 Power BI update to learn about new features.
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 |
|---|---|
| 37 | |
| 37 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 31 | |
| 26 | |
| 23 |