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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
shiveshsingh
Master
Master

Month Wise max data

Hi guys

I need month wise max data, sample data is shared below

PLAYERMONTHRUN
AMONTH110
AMONTH220
AMONTH313
BMONTH114
BMONTH216
BMONTH340
CMONTH145
CMONTH260
CMONTH31

output:

MonthPlayerRun
MONTH1C45
MONTH2C60
MONTH3B40

trying with expression but is it now working : SUM(AGGR(MAX(SUM(RUN)),MONTH,PLAYER))

Labels (1)
4 Replies
tresB
Champion III
Champion III

Straight table

Dim : Month

Exp 1 (Player) : FirstSortedValue( distinct Player, -Run)

Exp 2 (Run) : Max(Run)

shreya_nadkarni
Partner - Creator
Partner - Creator

Hi tresesco,

Wanted to know for this scenario if there are two dimensions Player and Month.

How can we write 1 expression in order to get the output.is it possible? Thanks

shiveshsingh
Master
Master
Author

Thanks tresesco, Can we build expression using AGGR function?

tresB
Champion III
Champion III

You can. Is there any specific reason why you would like to use aggr() here? In general, thumb rule is - avoid using aggr() wherever you can.