Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

stabben23
Not applicable

Variable from Set analysis used in script

Hi,

I create a variable in  Variable Overview, this is a set analysis expression and gives me the correct value in a text box using $- expansion. But when I try to use it inside script view it gives me wrong values, how should I solv this?variable.pngvariable_script.png

4 Replies
alexandros17
Not applicable

Re: Variable from Set analysis used in script

Define the variable in the script

Gysbert_Wassenaar
Not applicable

Re: Variable from Set analysis used in script

You cannot use set analysis in the script. That's why it doesn't work and will never work.


talk is cheap, supply exceeds demand
Not applicable

Re: Variable from Set analysis used in script


Hi,

SetAnalysis Concept won't work in script.it will work only in UI part.You can create a variable with using Let command with the Same logic

stabben23
Not applicable

Re: Variable from Set analysis used in script

Ok, so in the script it see the set expression it self and not the result of the set expression.