Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help in set analysis

Hi,

as I have two fields are first one is Year and next one is status.

Year contains 2012 and 2013 and the status contains A,B,C,1

as I need a  expression that 2012 and excluded of A, so I tried a expression as in the below, but its not working, could you please anyone correct me.

=Sum({1<Year={$(PY)} - Status="{$('A')}"}>}Sales))

Regards

Chriss

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Exclude 2012 and A ?

Try this:

Sum({<Year={*}-{2012}, Status={*}-{'A'}>} Sales)   // assuming that you want this irrespective of selection.

Sum({<Year - ={2012}, Status - ={'A'}>} Sales)  // if you want to consider the selection

View solution in original post

3 Replies
tresesco
MVP
MVP

Exclude 2012 and A ?

Try this:

Sum({<Year={*}-{2012}, Status={*}-{'A'}>} Sales)   // assuming that you want this irrespective of selection.

Sum({<Year - ={2012}, Status - ={'A'}>} Sales)  // if you want to consider the selection

MayilVahanan

HI

Try like this

= Sum({<Year = {$(PY)} , Status -= {'A'}>} Sales)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hi,

thanks for your reply.. as I need to select the Year and not equal of Status 'A' but I done it through your example...

Thanks a lot