If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
Is it possible to set a variable name to include the current year?
set v&$(vCurrentYear)&Parm1 = .05;
I want this to evaluate to v2016Parm1=.05.
So wouldn't this create a vMyVar variable with 'v2016Parm1 = .05' as value instead of a v2016Parm1 variable with '.05' as value?
Or you just need to use $(vMyVar) in place of the whole variable in the desired expression?
I have one additional question about this topic: Does my variable need to be script defined? I tried defining it in the app and couldn't get it to evaluate correctly.
Really helped me get a timestamp variable for each tab in my script. Thank you Rob!
// MAIN TAB
LET vTAB = 0;
// EVERY TAB IN SCRIPT
LET vTAB = $(vTAB)+1;
LET vTimeTab_$(vTAB) = TIMESTAMP(NOW());