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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Background color function using "Cell elements" works sometimes, sometimes not

Hi there community,

 

I set up rules for the Background of my table to make it easier to see where the KPI is red and green.

 

sadly, this doesn´t work for all cells, although the range I set up in the rules should work - and some cells work and some don´t. And I can´t see what´s the reason behind it and what went wrong. can you help me?

 

These are my rules (its a calculated value)

DerWindy_0-1665564625365.png

 

this is what my table looks like (you can see it sometimes works, sometimes not. and the values where it does not work are in between values that work. I don´t get it)

DerWindy_1-1665564720137.png

 

Any suggestions? 

Thanks!

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

In addition, you can also try to use expression-based mode conditional formatting if rule mode does not work properly:
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Anonymous , You are using sum of overdue, can you check that by adding that to the table? Prefer to use measure.

 

You can also create a color measure and use that in conditional formatting using field value option

 

example

 

Switch(true(),
[SLA] = 1 , "Green" ,
[SLA] >= .5 , "Amber" ,
"Red "
)

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors