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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
donodackal
Helper I
Helper I

Conditional formatting not providing desired result.

Hello folks

 

I have a Pareto chart that  I would like to further distinguish the 20:80 list with the background colour to the cell %value. 

I applied the following steps under cell elements>Background Color:

donodackal_0-1652839937788.png

However, I am not getting the desired results with cells that have more than 81% also getting the yellow background. I checked the data formatting and it's in %. Not sure what I am doing wrong here, any help would be appreciated. The snippet below is the result I am getting with the above rules:

donodackal_2-1652840494023.png

Any help to make sure the colour formatting sticks to what is 80% and below is one colour and 81% and above is another colour would be appreciated. 

Cheers!

 

 

 

 

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @donodackal,

Does any aggregate apply to your fields that enabled the conditional formatting? If that is the case, the conditional formatting rule will be based on the detailed records instead of aggregate field values.

For this scenario, I'd like to suggest you create a measure to calculate the aggregate value and use the calculated result as a condition to check and return the color code for formatting.

Conditional table formatting in Power BI Desktop - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
lbendlin
Super User
Super User

Your rule will fail when the value is 80.5% .  Change the rules to say

 

> 80%    -  Blue

<= 80 % - Yellow

 

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. Avoid posting screenshots of your source data if possible.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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