Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Make your voice heard! Participate in the 2020 Wisdom of Crowds® Survey. BEGIN SURVEY
Highlighted
divyasharma9
New Contributor II

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

2 Replies
Highlighted

Re: Variables

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

Set x=3+4;

Let y=$(x)*3;

z=$(y)

Highlighted
eduardo_dimperio
Valued Contributor II

Re: Variables

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.