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

If in expression

I have the following expression.  See below.  But I only want that expression to work when the SalesAmount is > 0, How can I write this?

(Sum({<YearlyTotal = {[Year 3]}>}SalesAmount)/156)/count(DISTINCT ItemNumber)

1 Solution

Accepted Solutions
Not applicable
Author

@Gysbert, imho you need "  instead of ' around the >0 (it's a search string):

(Sum({<SalesMount={">0"},YearlyTotal = {[Year 3]}>}SalesAmount)/156)/count(DISTINCT ItemNumber)

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

(Sum({<SalesMount={'>0'},YearlyTotal = {[Year 3]}>}SalesAmount)/156)/count(DISTINCT ItemNumber)


talk is cheap, supply exceeds demand
Not applicable
Author

@Gysbert, imho you need "  instead of ' around the >0 (it's a search string):

(Sum({<SalesMount={">0"},YearlyTotal = {[Year 3]}>}SalesAmount)/156)/count(DISTINCT ItemNumber)