<?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 Re: Let Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028671#M347424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try my prev post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit;"&gt;Let vStartDate = '01-JAN-16';&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Set vLimit = TO_DATE('$(vStartDate)', 'DD-MON-YY');&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;trace $(vLimit);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;SQL Select ......&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;From ......&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;Where Transaction_Date &amp;gt;= $(vLimit)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;or with quote&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'$(vLimit)'&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-size: 12px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="1000952" data-object-type="2" href="https://community.qlik.com/thread/210164?sr=inbox&amp;amp;ru=42176" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #3778c7;"&gt;Let Statement&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 20:22:05 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-03-18T20:22:05Z</dc:date>
    <item>
      <title>Let Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028667#M347420</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;I am trying to define a variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Let vStartDate = '01-JAN-16';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Let vLimit = 'TO_DATE('$(StartDate)', 'DD-MON-YY')'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;When I am trying to load the variables I am getting the following error :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118628_pastedImage_5.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Can someone help me with the correct syntax ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;H&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 18:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028667#M347420</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2016-03-18T18:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Let Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028668#M347421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TO_DATE is not a Qlik script function, and your statement itself does not evaluate to a valid statemten because of the quoting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vLimit = Date#('$(vStartDate)','DD-MMM-YY');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 18:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028668#M347421</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-18T18:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Let Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028669#M347422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you need a vLimit var for an Oracle where clause or something similar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;Let vStartDate = '01-JAN-16';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set vLimit = TO_DATE('$(vStartDate)', 'DD-MON-YY');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118637_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 20:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028669#M347422</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-18T20:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Let Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028670#M347423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Maxgro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Select ......&lt;/P&gt;&lt;P&gt;From ......&lt;/P&gt;&lt;P&gt;Where Transaction_Date &amp;gt;= $(vLimit)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 20:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028670#M347423</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2016-03-18T20:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Let Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028671#M347424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try my prev post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit;"&gt;Let vStartDate = '01-JAN-16';&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Set vLimit = TO_DATE('$(vStartDate)', 'DD-MON-YY');&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;trace $(vLimit);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;SQL Select ......&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;From ......&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM&gt;Where Transaction_Date &amp;gt;= $(vLimit)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;or with quote&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'$(vLimit)'&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-size: 12px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="1000952" data-object-type="2" href="https://community.qlik.com/thread/210164?sr=inbox&amp;amp;ru=42176" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; color: #3778c7;"&gt;Let Statement&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 20:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Let-Statement/m-p/1028671#M347424</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-18T20:22:05Z</dc:date>
    </item>
  </channel>
</rss>

