<?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 Strange result when applying date function on variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-result-when-applying-date-function-on-variable/m-p/169373#M40194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running the following script, the contents of DateEndDateForumla and DatevEndDate are not the same. What am I doing wrong? I would like to be able to trust the vTSEndDate variable in all contexts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vTSEndDate = num(MonthEnd(AddMonths(Today(),-1,0)),'0');&lt;/P&gt;&lt;P&gt;checktable:&lt;BR /&gt;Load&lt;BR /&gt;num(MonthEnd(AddMonths(Today(),-1,0)),'0') as EndDateFormula&lt;BR /&gt;,$(vTSEndDate) As vEndDate&lt;BR /&gt;,date(num(MonthEnd(AddMonths(Today(),-1,0)),'0'),'YYYYMMDD') as DateEndDateFormula&lt;BR /&gt;,date($(vTSEndDate),'YYYYMMDD') As DatevEndDate&lt;BR /&gt;Autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Aug 2010 10:23:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-20T10:23:28Z</dc:date>
    <item>
      <title>Strange result when applying date function on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-result-when-applying-date-function-on-variable/m-p/169373#M40194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running the following script, the contents of DateEndDateForumla and DatevEndDate are not the same. What am I doing wrong? I would like to be able to trust the vTSEndDate variable in all contexts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vTSEndDate = num(MonthEnd(AddMonths(Today(),-1,0)),'0');&lt;/P&gt;&lt;P&gt;checktable:&lt;BR /&gt;Load&lt;BR /&gt;num(MonthEnd(AddMonths(Today(),-1,0)),'0') as EndDateFormula&lt;BR /&gt;,$(vTSEndDate) As vEndDate&lt;BR /&gt;,date(num(MonthEnd(AddMonths(Today(),-1,0)),'0'),'YYYYMMDD') as DateEndDateFormula&lt;BR /&gt;,date($(vTSEndDate),'YYYYMMDD') As DatevEndDate&lt;BR /&gt;Autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 10:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-result-when-applying-date-function-on-variable/m-p/169373#M40194</guid>
      <dc:creator />
      <dc:date>2010-08-20T10:23:28Z</dc:date>
    </item>
    <item>
      <title>Strange result when applying date function on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-result-when-applying-date-function-on-variable/m-p/169374#M40195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please find the attached QV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 10:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-result-when-applying-date-function-on-variable/m-p/169374#M40195</guid>
      <dc:creator />
      <dc:date>2010-08-20T10:50:02Z</dc:date>
    </item>
    <item>
      <title>Strange result when applying date function on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-result-when-applying-date-function-on-variable/m-p/169375#M40196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it should be "Se"t instead of "Let"! Thanks a lot &lt;IMG alt="Wilted Flower" src="http://community.qlik.com/emoticons/emotion-52.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 11:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-result-when-applying-date-function-on-variable/m-p/169375#M40196</guid>
      <dc:creator />
      <dc:date>2010-08-20T11:36:30Z</dc:date>
    </item>
  </channel>
</rss>

