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: 
Not applicable

Sum Aggregate count only a in if condition

Hi to all,
I need to sum aggregate and count only if the data satisfied a kind of conditions..

I tried all the combinations but the sintax is not correct....

sum(if(Type_doc='BL', aggr(count(distinct SC)),Store,Month, Day))

any ideas ?

thx
Andrea

1 Reply
Not applicable
Author

Hi Found the right sintax

=sum( aggr( count(distinct if(Type_doc='BL', SC)),Store,Month, Day))

Bye

Andrea