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

QlikSense OR mode

Hello,

Can someone help me in implementing OR mode between list boxes in Qliksense?

I found the solution in Qlikview using variables. I want to implement the same in Qliksense. But its not working.

I am attaching the OR mode QVW which worked in Qlikview.

1 Reply
Gysbert_Wassenaar

That should work in Qlik Sense too. In Qlik Sense 2.1 you can create variables in the user interface. In earlier versions you'd need to do it in the script. But in the script the $(...) will be expanded so you need a small trick:

SET vSelection.Or =

=@(=

Concat(DISTINCT {<[$Field]-={@(vSelection.IgnoreFields)}>}

'If(GetSelectedCount([' & [$Field] & ']) > 0, ' & chr(39) &

'<[' & chr(39) & ' & Concat(DISTINCT  {<[$Field]={"*"} -

{'& chr(36) & '(vSelection.IgnoreFields)} - {' & chr(39) &

[$Field] & chr(39) & '}>} [$Field], ' & chr(39) & ']= ,[' &

chr(39) & ') & ' & chr(39) & ']= > + ' & chr(39) & ')' , '  & ') 

);

LET vSelection.Or = replace('$(vSelection.Or)','@','$');


talk is cheap, supply exceeds demand