<?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 comparison confusion (Weekend) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-comparison-confusion-Weekend/m-p/910483#M316179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused by dates again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me why this is so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="94986" alt="DateConfusion1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94986_DateConfusion1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="94987" alt="DateConfusion2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/94987_DateConfusion2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see I am comparing the minimum of the date field (27 july 2015) with a date calculation which gives a date that is the same.&amp;nbsp; But the if statement says they are not equal!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&amp;nbsp; Am I just going mad?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just worked it out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weekend returns a time element.&amp;nbsp; weekend is the last millisecond of the week.&amp;nbsp; So I needed a floor function to get just the date and ignore the time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Min(Date)=floor(Weekend(today))-13&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2015 01:01:20 GMT</pubDate>
    <dc:creator>shanemichelon</dc:creator>
    <dc:date>2015-08-05T01:01:20Z</dc:date>
    <item>
      <title>Date comparison confusion (Weekend)</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-confusion-Weekend/m-p/910483#M316179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused by dates again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me why this is so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="94986" alt="DateConfusion1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94986_DateConfusion1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="94987" alt="DateConfusion2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/94987_DateConfusion2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see I am comparing the minimum of the date field (27 july 2015) with a date calculation which gives a date that is the same.&amp;nbsp; But the if statement says they are not equal!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&amp;nbsp; Am I just going mad?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just worked it out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weekend returns a time element.&amp;nbsp; weekend is the last millisecond of the week.&amp;nbsp; So I needed a floor function to get just the date and ignore the time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Min(Date)=floor(Weekend(today))-13&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 01:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-confusion-Weekend/m-p/910483#M316179</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2015-08-05T01:01:20Z</dc:date>
    </item>
  </channel>
</rss>

