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 ,

I need to know regarding the AGGR() Function.

Can someone explain me please?

Thanks

6 Replies
tresesco
MVP
MVP

Anonymous
Not applicable
Author

check this & see the attachment as well:

Aggr() function

Aggr function in QlikView | Learn QlikView

Not applicable
Author

Thanks

All

Will surely go through each one

Not applicable
Author

Hi Sahoo, suppose that you have this table:

CITY | SALES | YEAR

BOSTON | 1000 | 2014

NEW YORK | 1200 | 2014

CHICAGO | 2000 | 2014

BOSTON | 1500 | 2015

CHICAGO | 1000 | 2015

If you apply the aggr() function for example aggr( sum(sales) , city ) you are grouping the sales for city.

So, if you do a listbox with city like dimension and aggr( sum(sales) , city ) like expression you get this:

CITY | SALES

BOSTON | 2500

NEW YORK | 1200

CHICAGO | 3000

You are getting the sales for cities. So, the aggr() function serves to grouping a dimension applying a expression.

I hope that it help you!

Not applicable
Author

Thanks Leira!!!