Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I'd like to highlight the highest value in a pivot table. Thereby I´m facing the following issue:
| Mon | Tue | Wed | Thu | Fri | Sat | Sun | |
| 1 am | 10 | 15 | 12 | 20 | 5 | 3 | 1 |
| 2 am | 15 | 14 | 18 | 19 | 29 | 6 | 7 |
| ... |
I already figured how to highlight the highest value per row [if(rank(vIncomingOrders)=1, green())], but I need to highlight only one value for the whole pivot table.
That´s what I need:
| Mon | Tue | Wed | Thu | Fri | Sat | Sun | |
| 1 am | 10 | 15 | 12 | 20 | 5 | 3 | 1 |
| 2 am | 15 | 14 | 18 | 19 | 29 | 6 | 7 |
| ... |
Can you please help me?
Thanks!
Felix
Let's assume your expression in vIncomingOrders is below
sum(Qty)
then, in expression background color you can write below expression
=if(sum(Qty) = max(total aggr(Sum(Qty),Time,Day)),Green())
Where Time is the field that contains time value, 1am,2am...
and Day is the field that contains Day valus Mon,Tue,Wed.....
Hi Felix,
Try this, the TOTAl will evaluate over all values.
IF(
Rank(TOTAL vIncomingOrders)=1,
green(),
null()
)Jordy
Climber
Hi Jordy,
thanks for your quick response.
Unfortunately it didn´t work for me as it gave me the same result.
Let's assume your expression in vIncomingOrders is below
sum(Qty)
then, in expression background color you can write below expression
=if(sum(Qty) = max(total aggr(Sum(Qty),Time,Day)),Green())
Where Time is the field that contains time value, 1am,2am...
and Day is the field that contains Day valus Mon,Tue,Wed.....
Hi Kush141087,
vIncomingOrders already contained the sum of all quantities.
After I changed my underlying formula so that it´s not containing the sum already, it worked fine for me.
Thanks a lot! 🙂
Hi
Is it possible to get the lowest highlighted? with this formula?
Hi,
this should be possible, too.
Just replace Max() with Min().