Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
robin_heijt
Creator
Creator

Create a filter pane that excludes instead of Include

Hi,

I was wondering if through set analysis of some sorts I can create a filter pane that instead of creating a selection will create a exclusion.

I know it is possible to select excluded in the filter menu, but I want it to be more efficient that if i select something in the filter pane, the selection will immediately be excluded.

Thanks.

15 Replies
sunny_talwar

rubenmarin

Hi Robin, maybe with a set analysis like:

{<FieldName={"*"}-{$(=chr(39)&GetFieldSelections(FieldName, chr(39)&','&chr(39))&chr(39))}>}

rubenmarin

{<FieldName=E(FieldName)>}

Yes, that's looks more clean, I forgot about E()

robin_heijt
Creator
Creator
Author

Thanks both,

I get the logic now. But when I use this expression I get an error in expression. Anything I might have to add to the expression?

sunny_talwar

As long as you get the desired output using the e() function, you can ignore any errors (red wiggly lines) that syntax editor shows you.

robin_heijt
Creator
Creator
Author

Unfortunately I am not getting the desired result.

If my field would be called "Name" and represents all the names in my field.

What would be my expression to show all the names and by clicking then exclude the people from the list?

Cheers Sunny

sunny_talwar

If(GetSelectedCount(Name) = 0, Sum(Measure), Sum({<Name = e(Name)>}Measure)

robin_heijt
Creator
Creator
Author

Unfortunately this does not work for me. The expression editor accepts the expression, but the filter pane still shows an error.

I am also curious as to why a measure is being used to show a dimension. Would you care to explain ?

Cheers

sunny_talwar

I am not entirely sure what you are going after, would you be able to provide a sample app to show what you have and what you are trying to do?