Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Qliksense_77
Creator
Creator

Sum aggr count distinct with a condition

Hi,

I want to count the number of distinct sales per day and per costumer, but only if it is a sale per telephone. 

Therefore I need to make this expression to be conditional of sale per telephone: 

Sum(Aggr(count (distinct sale), Date, costumer) )

 

 

1 Solution

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

Hi @Qliksense_77 ,

Of course I don't know exactly your field names but you can try something as below:

=Sum( Aggr( count( {< sales_type = {'telephone'} >} distinct sale), Date, costumer ) )

I hope it can helps.
Best Regards

View solution in original post

2 Replies
agigliotti
Partner - Champion
Partner - Champion

Hi @Qliksense_77 ,

Of course I don't know exactly your field names but you can try something as below:

=Sum( Aggr( count( {< sales_type = {'telephone'} >} distinct sale), Date, costumer ) )

I hope it can helps.
Best Regards

Qliksense_77
Creator
Creator
Author

It works:)