<?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 Variable Evaluation Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-Evaluation-Problem/m-p/197451#M57118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put the word LET in front of the variable declaration instead of SET &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Nov 2010 20:43:49 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2010-11-22T20:43:49Z</dc:date>
    <item>
      <title>Variable Evaluation Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Evaluation-Problem/m-p/197450#M57117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have declared a variable which does a data conversion. I want to add this variable so that it loads the correct file which has this date appendage at the end, while in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;B&gt;&lt;BR /&gt;set&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt; PrevDateYYMM= right(date(addMonths(MAKEDATE(20&amp;amp;LEFT([Master_Calendar_Month_Key],2),RIGHT([Master_Calendar_Month_Key],2)), -1)), 2) &amp;amp; mid(date(addMonths(MAKEDATE(20&amp;amp;LEFT([Master_Calendar_Month_Key],2),RIGHT([Master_Calendar_Month_Key],2)), -1)), 4, 2);&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;B&gt;&lt;I&gt;&lt;BR /&gt;'$(PrevDateYYMM)'&lt;BR /&gt;&lt;BR /&gt; TEAM&lt;BR /&gt;&lt;BR /&gt;FROM [REPORT_$(PrevDateYYMM)];&lt;BR /&gt;&lt;/I&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The problem is with this is that it does not evaluate the variable. If I create a field in the script with the same code I get the correct figures but I have to compute this in the script to load the correct files as I am also doing a loop. What it is not doing is giving an error saying cannot load REPORT_$right(date(addMonths(MAKEDATE(20&amp;amp;LEFT([Master_Calendar_Month.......(full expression).&lt;/P&gt;&lt;P&gt;I've tried using both let and set but neither are giving me the answer i want. Has anyone any ideas as the method to create the value is correct, it just uses the expression and not the computed value in the script.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 19:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Evaluation-Problem/m-p/197450#M57117</guid>
      <dc:creator />
      <dc:date>2010-11-22T19:14:15Z</dc:date>
    </item>
    <item>
      <title>Variable Evaluation Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Evaluation-Problem/m-p/197451#M57118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put the word LET in front of the variable declaration instead of SET &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 20:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Evaluation-Problem/m-p/197451#M57118</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-11-22T20:43:49Z</dc:date>
    </item>
    <item>
      <title>Variable Evaluation Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-Evaluation-Problem/m-p/197452#M57119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad,&lt;/P&gt;&lt;P&gt;Had used LET previously - just realised the problem I had was i was referencing the wrong field when doing so, d'oh! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 09:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-Evaluation-Problem/m-p/197452#M57119</guid>
      <dc:creator />
      <dc:date>2010-11-23T09:56:19Z</dc:date>
    </item>
  </channel>
</rss>

