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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

Aggr function

Hello can you tell me how does the aggr function works?

in this case aggr(sum(Sales), Country)

what is generated?

Thanks

Marco

14 Replies
sasiparupudi1
Master III
Master III

Hi

aggr(sum(Valori),Prodotto)

the above statement gives a total sum of valorie values per each Prodotto in your table.

I think it will make more sense if had you table data defined like this

LOAD * Inline

[

Prodotto,Valori

PIPPO,1

PIPPO,10

PIPPO,100

PLUTO,2

PLUTO,20

PLUTO,200

TOPOLINO,3

TOPOLINO,30

TOPOLINO,300

];Untitled124412.png

marco_puccetti
Partner - Creator
Partner - Creator
Author

In this case it works.

So in the aggregation is showed only the expression values (first argument).

Thanks

Marco

marco_puccetti
Partner - Creator
Partner - Creator
Author

How is it created the Aggragate table?

Thanks

Marco

sasiparupudi1
Master III
Master III

Hi

Please have a look at the attachement.

Basically selected the dimension Prodotto and an expression columns called aggrgate which has the formula Aggr(Sum(Valori),Prodotto)

Sasi

marco_puccetti
Partner - Creator
Partner - Creator
Author

OK you have to use the prodotto as dimension and this statement to get the data aggr(sum(Valori),Prodotto).

Thanks

Marco