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
AndroidFactory
New Member

Value shown as % conditional formatting

Hiya,

 

I have a number of storage locations that are either full or empty in a given zone, I am using the same sums of locations to display the number in the column and the % of the row total.

I am trying to apply conditional formatting to the % columns where if it is below 10% it goes red and above 10% is green but the conditional formatting rule does not even do anything, no formatting applied at all.

The sum of the locations comes from an integer colum where each location is assigned the number 1.

 

When the default grandient formatting is applied it works as expected. How to make Rule one function? Do I need a measure to get the percentage figures so that the formatting works?

AndroidFactory_2-1736194178239.png

 

 

 

AndroidFactory_1-1736194130878.png

 

 

AndroidFactory_0-1736194069003.png

 

Thank you

 

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

I think your rule right now is trying to format the cell based on the COUNT column (i.e for MC1 Empty, it's looking at 886, rather than 21%)

you can use a measure to format - something like:

Percentage = DIVIDE(SUM(Table[Count), CALCULATE(SUM(Table[Count]), REMOVEFILTERS(Table[LOC STATUS])))

and then just apply the rules you have above. 
Hope this helps

View solution in original post

3 REPLIES 3
AndroidFactory
New Member

Thank you I think it works now! 

I had a feeling that the value was the issue, even though it was displayed as a % value it was still looking at the base number.

This just show how much I still need to figure out.

 

Thank you for your help

Anonymous
Not applicable

Hi, @AndroidFactory 

 

Thank you for reaching out to the Microsoft Fabric Community Forum.

 

We appreciate you sharing the issue you encountered and providing a well-reasoned hypothesis. Your ideas are excellent and showcase your deep thought, analytical skills, and unique insights into the problem. If you need further assistance, please feel free to ask questions on the forum again.

 

Your contributions greatly enhance the positive development of our community.

 

Wishing you all the best!

 

Best regards,

Leroy Lu

vicky_
Super User
Super User

I think your rule right now is trying to format the cell based on the COUNT column (i.e for MC1 Empty, it's looking at 886, rather than 21%)

you can use a measure to format - something like:

Percentage = DIVIDE(SUM(Table[Count), CALCULATE(SUM(Table[Count]), REMOVEFILTERS(Table[LOC STATUS])))

and then just apply the rules you have above. 
Hope this helps

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.