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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help needed with Aggr() function

Hi

I have the following data:

Capture.PNG

And my problem is the following:

As you can see I have a client ID with two closed dates. The issue is that I need to count only the "Promoter" category for August, but the count is giving me the total of 5, instead of 2... how can I fix this?

As you can see in the second chart I have a column that uses Aggr() to get the max closed date, but I don't know to make the column "count" to count only those and ignore the data from January.

Thanks a lot for your help on the same.

Regards,

11 Replies
Not applicable
Author

Hi, whenever I have this issue, I just use a simple "Sum(if", e.g.

Sum(if(NPS_Category='Promoter',1,0) and it worked fine for me:

sumif.png

Not applicable
Author

Thanks a lot sunindia‌.... it seems to be working and giving me the number I need. Thanks for you help, now I will try to apply the same logic to fullfil the need we have.

Really appreciate it!!