Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a field in my data model called flag, that has values 1 and 2 . When we select 1 or 2 some specific field values get selected.
Now I need to create a variable that would do toggle (0 or 1) and based on that toggle values my field flag value would be selected .
suppose variable name is vVar , then I want
if vVar =0 , then select Flag value =1,
if vVar =1, then select Flag value =2
Please help how to get this done.
You can create two buttons each with two actions
First button
1 action set variable to 0
2 action select flag value = 1
Second button
1 action set variable to 1
2 action select flag value = 2
Hi Vinieme, thank you so much for your reply. Actually I do not want to use button in the QlikSense dashboard.
we want to toggle using Vizlib switch that would only change variable values.
Without button, can you think of other way please.
AFAIK variables can't trigger field selections
You may create a second parallel field which contained these values. Another option might be to use dual() to show 1 and 2 but the underlying values are 0 and 1. Further you may query the set selections within the expressions to create dynamic views.
- Marcus