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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
harirao
Post Prodigy
Post Prodigy

Custom icons for conditional formatting not working

Hi All,

I want to create conditional formatting using Icons based on the percentage measure created, below are the conditions which i want to use in Matrix table
Condition Formatting-2.PNG
But i am unable to use last condition i.e <75% to >125% getting below error 
Condition Formatting-1.PNG

Can you please assist me how to fix the below issue.

 

Thank for your help in advance.

 

Regards,

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @harirao 

Thanks for reaching out to us.

In your screenshot, logic used is and, not or.

please try this measure,

Measure = 
var _value= MIN('Table'[Attainment])
return SWITCH(TRUE(),
_value>0.75 && _value<0.85,"yellow",
_value>0.85 && _value<1.15,"green",
_value>1.15 && _value<1.25,"yellow",
_value<0.75 || _value>1.25,"red")

vxiaotang_0-1662531310145.png

result

vxiaotang_1-1662531443360.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-xiaotang
Community Support
Community Support

Hi @harirao 

Thanks for reaching out to us.

In your screenshot, logic used is and, not or.

please try this measure,

Measure = 
var _value= MIN('Table'[Attainment])
return SWITCH(TRUE(),
_value>0.75 && _value<0.85,"yellow",
_value>0.85 && _value<1.15,"green",
_value>1.15 && _value<1.25,"yellow",
_value<0.75 || _value>1.25,"red")

vxiaotang_0-1662531310145.png

result

vxiaotang_1-1662531443360.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-xiaotang 

Please note i am getting below error, also wanted to know is not possible to use Condition formatting "ICON's" 

Condition Formatting-3.PNG
Thank you

 

Watsky
Solution Sage
Solution Sage

Hi @harirao,

The logic doesn't make sense. How can a percent be less than 75% but be greater than 125%? Is the 125% supposed to be -125%?


Did my answer(s) help you? Give it a kudos by clicking the Thumbs Up!
Did my post answer your question(s)? Mark my post as a solution. This will help others find the solution.

Proud to be a Super User!

Hello @Watsky 

Actually this Logic is specifically define as per the business requirement.

 

Thank you

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.