Forum Discussion
Conditional Formatting
- 6 years ago
Anonymous
try to compare with Number, not Percent
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
- Anonymous6 years agoNot 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.
- az386 years agoCommunity 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
- Anonymous6 years agoNot applicable
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]))))))