Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Partner
Partner

Hi

Try this expression

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

View solution in original post

4 Replies
Highlighted
Partner
Partner

Hi,

I attached one application please find out

Highlighted
Not applicable

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?

Highlighted
Partner
Partner

Hi

Try this expression

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

View solution in original post

Highlighted
Not applicable

Thank you!!!

it works perfectly