Discussion board where members can learn more about Qlik Sense App Development and Usage.
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.
Hi Robin, maybe with a set analysis like:
{<FieldName={"*"}-{$(=chr(39)&GetFieldSelections(FieldName, chr(39)&','&chr(39))&chr(39))}>}
{<FieldName=E(FieldName)>}
Yes, that's looks more clean, I forgot about E()
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?
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.
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
If(GetSelectedCount(Name) = 0, Sum(Measure), Sum({<Name = e(Name)>}Measure)
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
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?