Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trigger problem

Hi,

I have a variable V1 that  gets calculated in the back- end and the values it can take is either 0 or 1.

now i have a second variable V2 whose value needs to be toggled between 0 and 1 every time V1 changes from 1 to 0.please help me how i can make this in the triggers

Thanks in advance

1 Reply
jpenuliar
Partner - Specialist III
Partner - Specialist III

Try, OnChangeTrigger where v2 is trigger by any change of V1 values.

OnChange event,Set Variable to:

v1 =if(v2 = 0,1,0)