<?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: Comparing 2 date fields to flag the count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57485#M607809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;if(floor(timestamp#(Date1,'DD/MM/YYYY hh:mm')) = floor(Date#(Date2,'DD/MM/YYYY')), 1, 0) As FlagField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Apr 2018 16:59:39 GMT</pubDate>
    <dc:creator>pradosh_thakur</dc:creator>
    <dc:date>2018-04-08T16:59:39Z</dc:date>
    <item>
      <title>Comparing 2 date fields to flag the count</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57481#M607805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to count the number of rows where Date1 is equals to Date2. It seems really simple but the flag has only 0 even if there are so many matching dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Date(Date#(Date1,'DD/MM/YYYY hh:mm'),'DD/MM/YYYY') = Date(Date#(Date2,'DD/MM/YYYY'),'DD/MM/YYYY'), 1, 0) As FlagField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 01:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57481#M607805</guid>
      <dc:creator>archire2102</dc:creator>
      <dc:date>2018-04-05T01:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 date fields to flag the count</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57482#M607806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have time also in the Date1 field. Get rid of the time and then compare it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 03:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57482#M607806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T03:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 date fields to flag the count</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57483#M607807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aadil but that's why I have used Date and Date# function but still not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2018 10:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57483#M607807</guid>
      <dc:creator>archire2102</dc:creator>
      <dc:date>2018-04-08T10:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 date fields to flag the count</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57484#M607808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to remove the time component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Date(&lt;STRONG&gt;Floor&lt;/STRONG&gt;(Date#(Date1,'DD/MM/YYYY hh:mm')),'DD/MM/YYYY') = Date(Date#(Date2,'DD/MM/YYYY'),'DD/MM/YYYY'), 1, 0) As FlagField&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I suggest you to put the individual expressions into&amp;nbsp; 2 text boxes and see if the formats are coming out as expected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;hth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sasi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2018 16:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57484#M607808</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-04-08T16:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 date fields to flag the count</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57485#M607809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;if(floor(timestamp#(Date1,'DD/MM/YYYY hh:mm')) = floor(Date#(Date2,'DD/MM/YYYY')), 1, 0) As FlagField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2018 16:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-date-fields-to-flag-the-count/m-p/57485#M607809</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2018-04-08T16:59:39Z</dc:date>
    </item>
  </channel>
</rss>

