Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
flex_98
Partner - Contributor II
Partner - Contributor II

Highlighting highest value in a pivot table

Hi all,

I'd like to highlight the highest value in a pivot table. Thereby I´m facing the following issue:

 MonTueWedThuFriSatSun
1 am10151220531
2 am 151418192967
...       

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:

 MonTueWedThuFriSatSun
1 am10151220531
2 am 151418192967
...       

 

Can you please help me?
Thanks!

Felix

Labels (2)
1 Solution

Accepted Solutions
Kushal_Chawda

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

View solution in original post

6 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Felix,

Try this, the TOTAl will evaluate over all values.

IF(
  Rank(TOTAL vIncomingOrders)=1, 
  green(),
  null()
)

Jordy

Climber 

Work smarter, not harder
flex_98
Partner - Contributor II
Partner - Contributor II
Author

Hi Jordy,

thanks for your quick response.
Unfortunately it didn´t work for me as it gave me the same result.

Kushal_Chawda

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

flex_98
Partner - Contributor II
Partner - Contributor II
Author

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! 🙂

nverdier
Contributor
Contributor

Hi 
Is it possible to get the lowest highlighted? with this formula?

flex_98
Partner - Contributor II
Partner - Contributor II
Author

Hi,
this should be possible, too.
Just replace Max() with Min().