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: 
q11hhg
Contributor III
Contributor III

Count if the sum is greater than 2

Hi there, could you please help me 

I want to know the distinct number of customers for the event type ='Login'  and sum of total event >2.

q11hhg_0-1614327874182.png

 

Labels (2)
1 Solution

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

Hi @q11hhg ,

You can use the below expression:

=count( {< [Event Type] = {'Login'}, [Customer ID] = {"=sum([Total Event])>2"}  >} distinct [Customer ID] )

I hope it can help.

Best Regards

View solution in original post

5 Replies
agigliotti
Partner - Champion
Partner - Champion

Hi @q11hhg ,

You can use the below expression:

=count( {< [Event Type] = {'Login'}, [Customer ID] = {"=sum([Total Event])>2"}  >} distinct [Customer ID] )

I hope it can help.

Best Regards

q11hhg
Contributor III
Contributor III
Author

Hi @agigliotti  Thank you but it gives me the same result as using : =
Count(distinct{<[Event Type]={'Login'}>}[Customer ID])

agigliotti
Partner - Champion
Partner - Champion

are you sure? that  would means that all customers with 'Login' as event type have the sum of 'Total Event' > 2.
is 'Total Event' a table field name?

q11hhg
Contributor III
Contributor III
Author

HI @agigliotti  yes it is  a table field name

q11hhg_0-1614330434496.png

 

agigliotti
Partner - Champion
Partner - Champion

ok then as i said above in this case both expressions give the same result, but they have not the same meaning of course...