Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
I have following table :
Name Value
A | 23 |
B | 30 |
C | 45 |
D | 55 |
E | 15 |
I want value to be colored based on Condition .
My condition is if value is greater than avg(value) ,it should be red else Green.
I have manually used average value in following expression : if ((value) > 30 ,Red(),Green()) ---- output : 45 and 55 are red others are green
I also tried with if ((value) > Avg(value) ,Red(),Green()) ---It is giving all values as Green color .
I want to calculate expression dynamically (avg value),
Please help
Thanks & Regards,
Pankaj Bhalekar
Try like this:
If(Sum(Sales)>30,Green(),If(Sum(Sales)<=30,Red()))
Hi Pankaj,
Try
if(avg(Value) > avg(Total aggr(avg(Value), Name)), Red(), Green())
Cheers,
Patrik.
Thanks Pratik ,it works for me
Cheers