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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikview979
Specialist
Specialist

Set & Let

Hi friends,

What is Set & Let  where we use Set & Let?

1 Solution

Accepted Solutions
sebastianlettner
Partner - Creator
Partner - Creator

Hi,

with SET you just can assign a value, with LET you can make a calculation and assign the outupt.

SET varS=1+1;     // varS = '1+1'

LET varL=1+1;     // varL = 2

View solution in original post

4 Replies
sebastianlettner
Partner - Creator
Partner - Creator

Hi,

with SET you just can assign a value, with LET you can make a calculation and assign the outupt.

SET varS=1+1;     // varS = '1+1'

LET varL=1+1;     // varL = 2

marcus_sommer

In addition to SebastianLettner see here The Magic of Variables for more details and explanations.

- Marcus

satishkurra
Specialist II
Specialist II

Hi

SET simply assigns what is after the equal to operator whereas let evaluates what is after the equal to operator.

Example:

2*2

Using SET the result will be 2*2

Using LET the result will be 4

Thanks

Satish

prabhas277
Creator
Creator

hi,

Set:

set variables are used  define to define paths,strings etc

SET variable name =string;

it can be only used in script

and  with Set only assign the value .

LET:

Let evaluates the expression

it can be created through script/UI.

Let variable name=Expression

It can be used in Chart calculations passing values inside the expression.