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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
croberts21
Continued Contributor
Continued Contributor

Conditional formatting logic problem

I have Free PBI Desktop v2.100.1182 (64 bit free version Dec 2021) on Windows 10.

I have a measure called "Pct of Est Cost" which calculates a percent in a matrix. I want to make a conditional formatted background color but I get an error. PBI shows me a red "i" in a red circle. The error is "Please check the logic of this rule." I don't really see a problem. Here's my rule. 

croberts21_0-1650983821171.png

"Pct of Est Cost" is a measure: 

Pct Of Est Cost = DIVIDE(JobCost[Act Cost], JobCost[Est Cost],"")
 
Pct Of Est Cost is formatted as a percent with one decimal place. The value can be less than 1 or more than 1. So if the value is 2, it actually shows as 200% on the matrix.
 
Can anyone see the problem here? I do not see the problem.
 
Thank you!
 
p.s. Could this be a bug that was fixed in a later version of PBI?
 
EDIT: I also tried to use a gradient for the background conditional formatting like this: 
croberts21_0-1650984530500.png

The matrix also looks wrong as a value of 39% came out with a yellowish background. But I do not want all values to have a background color, some I want to have a background color of white. That's why I put in a minimum number of 200, then 2000. In both cases I have a Pct Of Est Cost had a value of 39% and a yellow background. I'd like values less than 200% to have a background color of white. 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@croberts21 , I think it should be number, not percent. (percent is for distribution here)

if your column has been marked as percent column, then 200% will be 2 not 200

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@croberts21 , I think it should be number, not percent. (percent is for distribution here)

if your column has been marked as percent column, then 200% will be 2 not 200

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you. Your hint helped me fix this, and I tweaked some numbers in the conditional formatting gradient. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.