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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
KnowNow
Helper I
Helper I

Conditional formatting variance percentage

Hi,

I am trying to create conditional formatting on a variance percentage measure that I created in my report. The logic is if the percentage is less than 100% then green font and greater than 100% then red front. My measure is

VAR % = DIVIDE(ACTUALS,BUDGET).

 

Below is what I have and it is not working.

 

KnowNow_0-1696599028420.png

 

1 ACCEPTED SOLUTION

I tried it several ways like this and it still did not change. Not sure what I am doing wrong.

KnowNow_0-1696601511733.png

 

View solution in original post

7 REPLIES 7
jdbuchanan71
Super User
Super User

The problem is your range is looking at 1 to max and 0 to -1 (no number is >= 0 and <= negative 1) so you would only be formatting numbers > 100%.  You want it like this.

jdbuchanan71_1-1696599938413.png

 

I changed it to Min & Max as you requested but when I select "OK" nothing changed and when I look back at the formatting it changed back to 0 & 100.

KnowNow_0-1696601971118.png

 

That is how it handles the MAX and MIN as 100 Percent and 0 Percent.  These are not related to your % calculations, it is the 100% range (max number). The formatting is working in my sample file:

jdbuchanan71_0-1696602410955.png

I have attached it for you to look at.

 

Tahreem24
Super User
Super User

@KnowNow Create a measure:

Color Measure = IF(VAR % >1,"Green","Red")

Then use this in Field value and select Color Measure.

Tahreem24_0-1696599521795.png

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

This one works too when I applied it to values and totals. I have a matrix so I was only seeing the totals that is why the color was not changing. Thank you for this solution.

I tried it several ways like this and it still did not change. Not sure what I am doing wrong.

KnowNow_0-1696601511733.png

 

This works. I was applyting it to values only and I have a matrix so the values are rolling up to the total. The total was not chaning and I did not think to expand to see the values. Thank You

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors