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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
JCarr1321
Frequent Visitor

KPI Conditional Formatting Not Correct

A KPI I created for a measure doesn't conditionally format appropriately and I don't understand why.  The KPI has the correct value of 85.51% but doesn't get coded as GREEN like it should.  However, when I select the total in a table I have the KPI gets color coded correctly.  The trend axis in the KPI is 'Year' from a date table.

 

Below is a table that is conditional format correctly, the KPI and the conditional format rules.

JCarr1321_0-1631218330111.png

 

JCarr1321_1-1631218366299.png

Below is an image when the total in the table is selected and the KPI is formated correctly.

JCarr1321_2-1631218439797.png

 

I greatly appreciate help on this issue as I am sure I will run into it again.

 

6 REPLIES 6
JCarr1321
Frequent Visitor

After digging into the measure a bit more, it appears that the conditional formatting criteria is including both 2020 and 2021 data so the KPI formating is .9276 and not the .8551.  Why would this happen?  I can't figure out how the measure is calculating wrong.

v-jingzhang
Community Support
Community Support

Hi @JCarr1321 

 

Maybe you can use a card visual instead. Based on my test, its conditional formatting is correct. 

21091403.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

The issue with the card is losing the flexability if they select the prior year data.  If they select the prior year in the table the card shows up as blank.

JCarr1321
Frequent Visitor

@amitchandak below is a link to the pbix saved on One Drive.

 

https://winnco-my.sharepoint.com/:f:/p/jcarr/EqHVfkQLaJ9MvO219JLYatMBCvE-R9LAS2Zmrt5B4x-Nfg?e=Je8CPI 

 

Password: formatting

amitchandak
Super User
Super User

@JCarr1321 , ideally it should ahev worked as long as KPI is having same conditional formatting .

 

Can you share  a sample pbix after removing sensitive data.

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

@amitchandak have you had a chance to look at the pbix file?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.