Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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)','@','$');