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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pang22
Helper III
Helper III

Wrong conditional formatting color

Dears,

 

I set the below SLA% with below rules and colors and applied.

 

pang22_0-1711527239675.png

 

When I applied to "value and totals", the unit change to "number" but not "percent" and cannot edit.

And the color in SLA % is wrong.

How to solve it?

 

pang22_1-1711527387816.png

 

3 REPLIES 3
_AAndrade
Super User
Super User

Hi @pang22,

Did it solve your problem?
Did my message help you in any way? If it did, please mark my message as the solution and give it a "kudo", I'll appreciate it and help me out





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Uzi2019
Super User
Super User

Hi @pang22 

Sometimes the condition formatting does not give you correct color based on your condition. It is recommended that you create measure for color code.
create color measure and appy on font color 

color = if([CPC]<=85,"Red",IF(AND([CPC]>85,[CPC]<=95),"Yellow","Green"))

select field formatting and select your color measure from there.
 
I hope this resolved your issues!
 
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!
_AAndrade
Super User
Super User

Hi,

Try to put all your conditions as number and adjust the number, for example:
>= 0.85 number and <=0.95





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.