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

Exclude Zero value on an expression

Hi,

Hi,

how to exclude Zero value on an Expression?

3 Replies
Anonymous
Not applicable
Author

You didn't tell what expression.  for the generic question, I can give a generic answer:

<an aggregation function> ({<Value-={0}>} Value)

Not applicable
Author

Hi,

below is my expression

if(Count(CustomerCodeName)>0,sum(aggr(count(DISTINCT SalesmanDate),CustomerCodeName,SalesmanDate)))

Anonymous
Not applicable
Author

This is better

Try this, it will work unless I miscounted the parenthesis:

sum(if(

aggr(count(DISTINCT SalesmanDate),CustomerCodeName,SalesmanDate)>0,

aggr(count(DISTINCT SalesmanDate),CustomerCodeName,SalesmanDate)

))