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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.