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: 
Not applicable

Aggr()

Hi all ,can any one explain why we use Aggr() function ,with some simple exp,

3 Replies
Anonymous
Not applicable
Author

Let me try to make it simple...
Say, you have a numeric field Amount, and you have field Year.  Need to find a maximum amount among the years.  It can be done using aggr():
max(aggr(sum(Amount),Year))

That is, you aggregate sum(Amount) by Year, and find max after that.

And, read "help"

its_anandrjs
Champion III
Champion III

maxgro
MVP
MVP

if you try to search in the community you find many interesting info and docs about aggr

QlikView Technical Brief - AGGR

QlikView App: Aggr()

or in online help, search aggr and go to nested aggregation