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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Max value in Straight table

I have a requirement where I have to display the Max of Sum of Amount spent in a straight table.

Capture.PNG

In the above case both A and C have 1000 and 1000 is the max.

Capture.PNG

Have given Name as dimension.

Can anyone help me on Expression please.

1 Solution

Accepted Solutions
sunny_talwar

Expression can be this:

If(Sum(Amount) = Max(TOTAL Aggr(Sum(Amount), Name)), Sum(Amount))


Capture.PNG

View solution in original post

4 Replies
sunny_talwar

Expression can be this:

If(Sum(Amount) = Max(TOTAL Aggr(Sum(Amount), Name)), Sum(Amount))


Capture.PNG

Not applicable
Author

Hi Koushik,

Below two expressions should work fine:

Max(aggr(Sum(Amount),Name))

or

FirstSortedValue(  Name , -Amount )

Thanks,

SV

Anonymous
Not applicable
Author

Thanks a lot Sunny.

sunny_talwar

No problem

I am glad I was able to help.

Best,

Sunny