<?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 Setting Date as variable in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-Date-as-variable-in-load-script/m-p/132915#M765097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am setting a variable to a date value in the load script as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMonth = MakeDate(Year(Today()),Month(Today())-6,1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At a later point in the script, i am setting a filed in a table using this variable&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMonth) as Validation_Month&lt;/P&gt;&lt;P&gt;Resident &amp;lt;&amp;lt;Table&amp;gt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the variable seems to be set properly, the $ sign expansion seems to be returning a value of -21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why this is happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>vksthkkr</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Setting Date as variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Date-as-variable-in-load-script/m-p/132915#M765097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am setting a variable to a date value in the load script as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMonth = MakeDate(Year(Today()),Month(Today())-6,1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At a later point in the script, i am setting a filed in a table using this variable&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMonth) as Validation_Month&lt;/P&gt;&lt;P&gt;Resident &amp;lt;&amp;lt;Table&amp;gt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the variable seems to be set properly, the $ sign expansion seems to be returning a value of -21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why this is happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Date-as-variable-in-load-script/m-p/132915#M765097</guid>
      <dc:creator>vksthkkr</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date as variable in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-Date-as-variable-in-load-script/m-p/132916#M765098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SET vMonth = Date(MonthStart(Today(), -6));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vMonth)' as Validation_Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident &amp;lt;&amp;lt;Table&amp;gt;&amp;gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 19:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-Date-as-variable-in-load-script/m-p/132916#M765098</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-11T19:44:44Z</dc:date>
    </item>
  </channel>
</rss>

