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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
dekidroske
New Member

Erratic displays of icons with conditional formatting

I am using a red/green icon with conditional formatting.  Everything under 50.9999% should be green, everything above should be red.  However, when I apply the conditions I get a mix of icon colors (red/green) not aligned to the conditional criteria.  Why?

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dekidroske , when say %, You use Number( Not percent ) in the option and use .5 for 50% if that is % column

 

You can also create measure and use 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/...

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @dekidroske,

Does any aggregation apply to your value fields? If that is the case, the condition formatting is to check the detailed records instead of aggregated values.
I think you need to use a measure with to calculate the aggregate values and use it to apply conditional formatting.

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

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@dekidroske , when say %, You use Number( Not percent ) in the option and use .5 for 50% if that is % column

 

You can also create measure and use 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/...

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors