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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Conditional Formatting

Hi all,

I want to ask why my conditional formatting is not working. This is my matrix and the conditional formatting. The orange arrow should be in green as it exceeds 15%. Thank you so much.

 

sl1.PNGsl2.PNG

 
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@Anonymous 

 try to compare with Number, not Percent

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

8 REPLIES 8
az38
Community Champion
Community Champion

Hi @Anonymous 

there are much more in Conditional Formatting dialog box, please show.

 

Bytheway, I see your last row has Number as Unit, not percent. Im not sure it will work correct


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38, here is the full conditional formatting dialog box. The number at the end of the condition does not affect the icon/colors even if I remove it. I've tried it before w/o the last condition and it still doesn't work. The only problem is the numbers greater than 15 are marked as orange icon while it should be green icon.

 

sl3.PNG

az38
Community Champion
Community Champion

@Anonymous 

what is [GP Growth %] field? is it a measure? do you use CALCULATE()?

and do you like green arrows in values like 900%? your rule should cut it off


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38 

 

Yes it is a measure field. Here is the formula and yes I do use the CALCULATE() function. GP YTD and GP LY also are measure field.
Green arrow stopped at 100% btw.

GP Growth % = if(and([GP YTD] =0,[GP LY]=0),0,if(and([GP YTD] >=1,[GP LY]=0),1 ,if(and([GP YTD] =0,[GP LY]<=0),1,if(and([GP YTD] <=-1,[GP LY]>=0),-1,if(and([GP YTD] >=1,[GP LY]<=0),CALCULATE(([GP YTD]-[GP LY])/-([GP LY])),CALCULATE(([GP YTD]-[GP LY])/[GP LY]))))))

 

az38
Community Champion
Community Champion

@Anonymous 

I see values 154% and green arrow. I dont see any rules which describes >100% case.

So, I sure the problem is in measure interpretation.

Show data example, GP YTD and GP LY statements

are you sure you dont use any additional aggregations?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38there is no way we can put >100% condition as Power BI doesn't allow that. The logic allowed is between 0 to 100%. That's why I put the number in the condition to make negative percentage becomes red arrow. Here is some of the data sample for GP YTD and GP LY.

sl4.PNG

az38
Community Champion
Community Champion

@Anonymous 

could you remove sensitive data and share your pbix-file to cloud-service in order to help you?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
az38
Community Champion
Community Champion

@Anonymous 

 try to compare with Number, not Percent

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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.