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: 
Anonymous
Not applicable

Is there anyway to exclude filter selections other than "=" in the Set Analysis

I want to exclude all filter selections apart from month. Given that i have a lot of variables and a lot of script manually typing in for each vairable e.g. (sum({<Statement={'I consider myself a car enthusiast'},Response_Invlovement={'Agree'},Age=,Gender=,.....>} total WGT)) is becoming very cumbersome. Is there a way to exclude all possible selections other than my month variable? I cant manually type in all the variables because of Qlik's character limitation.

5 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Use syntax like this:

Sum({1<

    Statement={'I consider myself a car enthusiast'},

    Response_Invlovement={'Agree'},

    Month = $::Month

>} total WGT))


The {1} set will ignore all selections except for Statement and Response (explicitly defined) and Month (using selection). All other selections are ignored.

(assumes Month is a field not a variable)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Hey Thanks Jonathan ,

When i do that however the filter pane for month becomes empty. I want to be able to still select certain month/s. Also how do i undo making month a field instead of variable?

MOnth issue.jpg

Cheers,

David

Neymar_Jr
Creator II
Creator II

Hi,

Try this -

Sum({1<

    Statement={'I consider myself a car enthusiast'},

    Response_Invlovement={'Agree'},

    Month=P(Month)

>} total WGT))


Thanks,

RT

Anonymous
Not applicable
Author

Thanks Sunny thats really helpful