Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

$ expansion in the script and variable overview

Hi everybody.

I set two variables in the script -

SET Var1 = a+b;

SET Var2 = Sum($(Var1));

In Variable overview window Var2 expanded to Sum(a+b). Is it possible not to expand and keep  Var2 as Sum($(Var1)) in variable overview?

Thanks

1 Solution

Accepted Solutions

Re: $ expansion in the script and variable overview

LET Var2 = 'Sum($' & '(Var1))';


Or

SET Var2 = Sum(@(Var1));

LET Var2 = replace('$(Var2)','@','$');



talk is cheap, supply exceeds demand
1 Reply

Re: $ expansion in the script and variable overview

LET Var2 = 'Sum($' & '(Var1))';


Or

SET Var2 = Sum(@(Var1));

LET Var2 = replace('$(Var2)','@','$');



talk is cheap, supply exceeds demand
Community Browser