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
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
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.