Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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)

))