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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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

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

No problem

I am glad I was able to help.

Best,

Sunny