<?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: compare 2 dates in different format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815014#M1046685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First convert them to QlikView dates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date ( date# ( '201405 ' , 'YYYYMM' ) , 'DD MMM YYYY' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date ( date# ( '5/1/2014 ' , 'D/MM/YYYY' ) , 'DD MMM YYYY' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then compare them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2014 10:18:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-25T10:18:15Z</dc:date>
    <item>
      <title>compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815012#M1046683</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 want to compare two dates, first in format like 201405 and other in 5/1/2014.&lt;/P&gt;&lt;P&gt;I am using it in straight table and if condition gets true, then data for that date should display.&lt;/P&gt;&lt;P&gt;How to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815012#M1046683</guid>
      <dc:creator />
      <dc:date>2014-11-25T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815013#M1046684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First convert both date in one format then compare it&lt;/P&gt;&lt;P&gt;I prefer convert it into Number then compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(date(date#(firstDateField,'YYYYMM')))&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;Num(secondDateField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815013#M1046684</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-11-25T10:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815014#M1046685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First convert them to QlikView dates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date ( date# ( '201405 ' , 'YYYYMM' ) , 'DD MMM YYYY' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date ( date# ( '5/1/2014 ' , 'D/MM/YYYY' ) , 'DD MMM YYYY' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then compare them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815014#M1046685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T10:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815015#M1046686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide any sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815015#M1046686</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-25T10:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815016#M1046687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide same data to look over?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815016#M1046687</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-11-25T10:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815017#M1046688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Num(date(date#([Year Month],'YYYYMM')))=Num(Date)&amp;gt;}Product)&lt;/P&gt;&lt;P&gt;I tried something like this, but it's giving error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815017#M1046688</guid>
      <dc:creator />
      <dc:date>2014-11-25T10:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815018#M1046689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date={'$(=&lt;/SPAN&gt;date(date#([Year Month],'YYYYMM'),'MM/DD/YYYY'))'}&amp;gt;}Product)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Change 'MM/DD/YYYY' to format of field Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815018#M1046689</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-25T10:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815019#M1046690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;=count({&amp;lt;date ( date# ( '201405 ' , 'YYYYMM' ) , 'DD MMM YYYY' )=date ( date# ( '5/1/2014 ' , 'D/MM/YYYY' ) , 'DD MMM YYYY' )&amp;gt;}product)&lt;/P&gt;&lt;P&gt;it's giving error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815019#M1046690</guid>
      <dc:creator />
      <dc:date>2014-11-25T10:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815020#M1046691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In set Analysis you cannot compare like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try With IF statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(if(Num(date(date#([Year Month],'YYYYMM')))=Num(Date),Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815020#M1046691</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-11-25T10:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 dates in different format</title>
      <link>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815021#M1046692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach some sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Date1Formatted = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date2Formatted, 1, 0) AS Flag;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*, &lt;/P&gt;&lt;P&gt;Date(Date#(Date1, 'YYYYMM')) AS Date1Formatted,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(Date#(Date2, 'M/D/YYYY')) AS Date2Formatted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM DataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now just use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Flag={1}&amp;gt;} Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 02:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-2-dates-in-different-format/m-p/815021#M1046692</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-26T02:49:37Z</dc:date>
    </item>
  </channel>
</rss>

