Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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))

4 Replies
tresesco
MVP
MVP

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?

tresesco
MVP
MVP

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.