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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Ulviyya
Contributor II
Contributor II

Count of customers that have values higher than 0

Hello everybody,

I have a problem regarding Count function.

I have data stored in several columns: Year, Month, Customer_no and several Deposit types and need to count a number of distinct customers that have sum of all Deposit types>0. When I write if((Deposit1+Deposit2+Deposit3)>0,count(distinct customer_no))) I get 0.Please help, I have read many topics regarding count but none of them helped me with this issue.

 

Thanks in advance for any replies.

 

 

Labels (3)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

count(distinct {<customer_no={"=Sum(Deposit1+Deposit2+Deposit3)>0"}>} customer_no)

View solution in original post

2 Replies
tresesco
MVP
MVP

Try like:

count(distinct {<customer_no={"=Sum(Deposit1+Deposit2+Deposit3)>0"}>} customer_no)

Ulviyya
Contributor II
Contributor II
Author

It worked!!!  Many thanks!!!