<?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 Date where clause odd behaviour... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-where-clause-odd-behaviour/m-p/569656#M683586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a strange situation in my load script. All that I am doing is filtering on a specific date using the following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCurDate = date(peek('%keyDate'),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;&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;resident Temp&lt;/P&gt;&lt;P&gt;where %keyDate = '$(vCurDate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, even though there is data, the above returns no results. HOWEVER, if I put &amp;gt; rather than = in the where clause then it does return the date equal to that date (and above of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help explain this strange behaviour?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2014 12:19:01 GMT</pubDate>
    <dc:creator>juleshartley</dc:creator>
    <dc:date>2014-02-11T12:19:01Z</dc:date>
    <item>
      <title>Date where clause odd behaviour...</title>
      <link>https://community.qlik.com/t5/QlikView/Date-where-clause-odd-behaviour/m-p/569656#M683586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a strange situation in my load script. All that I am doing is filtering on a specific date using the following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCurDate = date(peek('%keyDate'),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;&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;resident Temp&lt;/P&gt;&lt;P&gt;where %keyDate = '$(vCurDate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, even though there is data, the above returns no results. HOWEVER, if I put &amp;gt; rather than = in the where clause then it does return the date equal to that date (and above of course).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help explain this strange behaviour?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 12:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-where-clause-odd-behaviour/m-p/569656#M683586</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-02-11T12:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date where clause odd behaviour...</title>
      <link>https://community.qlik.com/t5/QlikView/Date-where-clause-odd-behaviour/m-p/569657#M683587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured this out myself - I had created the key using a monthend function, which I think leaves a time on the end of the date... so I used a floor() to remove this and all is fine!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 12:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-where-clause-odd-behaviour/m-p/569657#M683587</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2014-02-11T12:35:48Z</dc:date>
    </item>
  </channel>
</rss>

