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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Cornwalls
Helper I
Helper I

How to - Conditional Formatting - Percentage

Hi Everyone,

 

First time posting so go easy on me.

 

I am looking for a way to achieve the below result that Columns A+B+C+D=E

 

But if Column E is greater than 80% of Column F, it will be formatted Red.

 

Stored Red ApplesStored Blue ApplesShipped Red ApplesShipped Blue ApplesTotal ApplesLimit
1114710
1115810

 

Hope this makes sense.....

3 REPLIES 3
lbendlin
Super User
Super User

You can do conditional formatting based on the value of a field - and that can be a field that isn't even on the visual. 

 

bgcolor = if(A+B+C+D >= F*.8,"Red")

Thanks @lbendlin 

 

Could i trouble you to walk me through that.

 

For example when i try to set up the conditional formatting, it doesnt let me put in any formula so to speak.

 

@lbendlin - in a bit more relevance to my data set. Am i creating a new measure with something like the below examples?

 

bgcolor = if('ALL COLUMNS'[Totals Billed and Unbilled] >= ('ALL COLUMNS'[Overall Limit] *.8,"Red")

 

=IF(('All Columns'[Overall Limit])>('All Columns'[Totals Billed and Unbilled])*80%,"greater","less")

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors