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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Variables

Hi All

I am working on LET and SET statements.

in the following example, what would be the value of  'z' variable.


Set x=3+4;    /

Let y=$(x)*3

z=$(y)


z will be  3+4*3 = 15 

or

(3+4) *3 = 21


Thanks.


Regards

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

Showing up as 15 when I run a sample with this code

Set x=3+4;

Let y=$(x)*3;

z=$(y)

eduardo_dimperio
Specialist II
Specialist II

Hi

Set x=3+4;   

Let y=$(x)*3;

z=$(y);


z =15


LET x=3+4;   

Let y=$(x)*3;

z=$(y);


z= 21


Use Set to literal interpretation, and Let for equations, as the case.