Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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)

))