<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LET and SET in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269027#M1183333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;It is very simple:&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;using SET&lt;/STRONG&gt; you are adding string value to a variable&lt;BR /&gt;SET Variable1='4+5';&lt;BR /&gt;variable value is '4+5'&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;using LET&lt;/STRONG&gt; you are adding an expression result to a variable&lt;BR /&gt;LET Variable1=4+5;&lt;BR /&gt;variable value is 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2011 05:23:42 GMT</pubDate>
    <dc:creator>kamalqlik</dc:creator>
    <dc:date>2011-11-08T05:23:42Z</dc:date>
    <item>
      <title>LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269021#M1183327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the use of LET and SET? What is the difference between them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attitude&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 05:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269021#M1183327</guid>
      <dc:creator />
      <dc:date>2011-10-24T05:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269022#M1183328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the Reference Manual, they are used to assign values to variables in the load script. The main difference is that while SET assigns the value to the variable without evaluation, as a string, the LET first evaluates the expression at the right part of the "=" sign, then stores the value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two simple examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SET vLiteral = 1 + 1; // This stores the string "1 + 1";&lt;/P&gt;&lt;P&gt;LET vSum = 1 + 1; // This stores 2&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for further reference the Manual and &lt;A _jive_internal="true" href="https://community.qlik.com/thread/14695"&gt;this thread&lt;/A&gt; on how they work and when and how to expand and &lt;A _jive_internal="true" href="https://community.qlik.com/thread/16554"&gt;this other one&lt;/A&gt; among many others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 07:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269022#M1183328</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-24T07:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269023#M1183329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="font-weight: bold;"&gt;Set&lt;/SPAN&gt; command assigns the variable the text to the right of the equal sign, whereas the &lt;SPAN style="font-weight: bold;"&gt;Let&lt;/SPAN&gt; command evaluates the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set &lt;/STRONG&gt;variablename = string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let &lt;/STRONG&gt;variable = expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;SPAN style="font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 08:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269023#M1183329</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-24T08:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269024#M1183330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let and Set commands are used to define Script Variables. Any text or numeric value can be assigned to the script variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S&lt;SPAN class="Bold"&gt;et V = $ ; ( &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;Set&lt;/SPAN&gt;- assigns the variable(V) the text(String) to the right of the equal sign)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vStart = num(makedate(2011)); (&lt;SPAN class="Bold"&gt;Let- &lt;/SPAN&gt;evaluates the expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set MUL = ’$1*$2’;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set X = $(MUL(3,7));&amp;nbsp;&amp;nbsp; // returns '3*7' in X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let X = $(MUL(3,7));&amp;nbsp;&amp;nbsp; // returns 21 in X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apurva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 10:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269024#M1183330</guid>
      <dc:creator />
      <dc:date>2011-10-24T10:04:45Z</dc:date>
    </item>
    <item>
      <title>LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269025#M1183331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the example like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;Let T=now( );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give you exact time because the value of now( ) return value assign to Let T variable and it retun time value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;Set P=now( );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But SET will give and return the now( )&lt;/P&gt;&lt;P&gt;means what ever you write for code it accept it as string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 10:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269025#M1183331</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-24T10:05:31Z</dc:date>
    </item>
    <item>
      <title>LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269026#M1183332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Set x=3+4;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Let y=3+4&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;z=$(y)+1;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;$(x) &lt;/SPAN&gt;will be evaluated as ' &lt;SPAN style="font-style: italic;"&gt;3+4&lt;/SPAN&gt; '&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;$(y) &lt;/SPAN&gt;will be evaluated as '&lt;SPAN style="font-style: italic;"&gt; 7 &lt;/SPAN&gt;'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;$(z) &lt;/SPAN&gt;will be evaluated as '&lt;SPAN style="font-style: italic;"&gt; 8 &lt;/SPAN&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 04:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269026#M1183332</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-11-08T04:41:30Z</dc:date>
    </item>
    <item>
      <title>LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269027#M1183333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;It is very simple:&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;using SET&lt;/STRONG&gt; you are adding string value to a variable&lt;BR /&gt;SET Variable1='4+5';&lt;BR /&gt;variable value is '4+5'&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG&gt;using LET&lt;/STRONG&gt; you are adding an expression result to a variable&lt;BR /&gt;LET Variable1=4+5;&lt;BR /&gt;variable value is 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 05:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269027#M1183333</guid>
      <dc:creator>kamalqlik</dc:creator>
      <dc:date>2011-11-08T05:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269028#M1183334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Qlikview&amp;nbsp; there are two variable SET and LET.The difference between these two is that the SET statement assigns literal string to SET variable,where LET Statement first evaluate the string before assigning it&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;Statement&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value of variable &lt;/P&gt;&lt;P&gt;Set aVariable= 2+3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2+3;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let bVariable = 2+3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 05:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/269028#M1183334</guid>
      <dc:creator />
      <dc:date>2014-04-23T05:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/1908271#M1218001</link>
      <description>&lt;P&gt;It is very similar as they are named:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt; will just set the value and &lt;STRONG&gt;LET&lt;/STRONG&gt; will let you define the expression/Value.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt; V_set&amp;nbsp; = 1+3&amp;nbsp; // &lt;FONT color="#339966"&gt;It will store the value of "1+3" in the variable V_set&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt; V_let = 1+3&amp;nbsp; // &lt;FONT color="#339966"&gt;It will store the value of 4 in the variable V_let&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/1908271#M1218001</guid>
      <dc:creator>kumarravi</dc:creator>
      <dc:date>2022-03-22T15:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: LET and SET</title>
      <link>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/1908352#M1218006</link>
      <description>Let= Dynamic(eg Let Variable = 2*2 when you use variable some where you will get answer 4)&lt;BR /&gt;Set=static(eg Set Variable = 2*2 when you use variable some where you will get answer 2*2)</description>
      <pubDate>Tue, 22 Mar 2022 18:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LET-and-SET/m-p/1908352#M1218006</guid>
      <dc:creator>Vijayqlik4171</dc:creator>
      <dc:date>2022-03-22T18:42:39Z</dc:date>
    </item>
  </channel>
</rss>

