Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
pauledrich
Creator
Creator

Exclude fields in expression sum

Hi,

I am attempting to display the result of total sales but want to exclude 2 specific fields from the calculation where sales have been made - this is the expression I have used which I am sure isn't quite right:-

=Sum({$<Field1-={">$(=.00)"},Field2=>}Sales)

I have seen the thread below which will come in handy I am sure but a bit beyond my skillset just yet.

http://community.qlik.com/thread/64281

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Say, you have three fields like Year, Product, Sales. Now,

sum( {$<Year = {“*”} – {2013}, Product =  >} Sales )  // this will exclude the sales of 2013 irrespective of the selection in the year field, and for the Product dimension selection is ignored (all the products would be considered in the sales).

hope this gives you an idea.

View solution in original post

1 Reply
tresesco
MVP
MVP

Say, you have three fields like Year, Product, Sales. Now,

sum( {$<Year = {“*”} – {2013}, Product =  >} Sales )  // this will exclude the sales of 2013 irrespective of the selection in the year field, and for the Product dimension selection is ignored (all the products would be considered in the sales).

hope this gives you an idea.