Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

aggr vs total

Hi!

A have table (please see atachment) and expression:

=if(month = '201211',sum( TOTAL {<month={'201211','201210','201209'}>}Sale),0)

I have problem with my formula. When i select only one country it works, when several - i have total sum.

i trying use aggr function like this:

=if(month = '201211',aggr(sum( {<month={'201211','201210','201209'}>}Sale),Country),0)

but it it not working

i need sum 3 month sale by Country

Please help if you can

1 Solution

Accepted Solutions
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

Try this expression

Sum( {<month = {'201211'}>} aggr(NoDistinct sum( {<month={'201211','201210','201209'}>}Sale),Country))

View solution in original post

4 Replies
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi,

I attached one application please find out

Not applicable
Author

Hi, Perumal!

Thank you for help.

In attachment sum is correct, but i need it apear with '201211'.

aggr_vs_total.JPG

is it posseble?

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

Try this expression

Sum( {<month = {'201211'}>} aggr(NoDistinct sum( {<month={'201211','201210','201209'}>}Sale),Country))

Not applicable
Author

Thank you!!!

it works perfectly