<?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 two month fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-two-month-fields/m-p/1601636#M736440</link>
    <description>Thank you for your reply. Yes you are right</description>
    <pubDate>Fri, 12 Jul 2019 05:18:06 GMT</pubDate>
    <dc:creator>ashis</dc:creator>
    <dc:date>2019-07-12T05:18:06Z</dc:date>
    <item>
      <title>Comparing two month fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-month-fields/m-p/1601629#M736438</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have mydate column which return date as 2019-07-08 (YYYY-MM-DD) format, e.g 8th of Jul 2019.&lt;/P&gt;&lt;P&gt;I am trying to compare this field with now () function in a text object. Here is the syntax.&lt;/P&gt;&lt;P&gt;=IF(DATE(TRIM(MAX(mydate )),'MMM')=date(TRIM(NOW()),'MMM'),1,0)&lt;/P&gt;&lt;P&gt;so it would compare Jul=Jul , if this is true then return 1 or 0.&lt;/P&gt;&lt;P&gt;The above syntax is returning 0, please advise how should i approach.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-month-fields/m-p/1601629#M736438</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two month fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-month-fields/m-p/1601635#M736439</link>
      <description>&lt;P&gt;The issue is that Qlik isn't really representing the MMM format as expected when you do the comparison in the "if".&lt;/P&gt;&lt;P&gt;So, either&lt;/P&gt;&lt;P&gt;=IF(Text(DATE(TRIM(MAX(MyDate )),'MMM'))=Text(date(TRIM(NOW()),'MMM')),1,0)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;IF(Month(MAX(MyDate ))=Month(NOW()),1,0)&lt;/P&gt;&lt;P&gt;will work.&lt;/P&gt;&lt;P&gt;The second statement is simpler.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 05:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-month-fields/m-p/1601635#M736439</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2019-07-12T05:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two month fields</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-two-month-fields/m-p/1601636#M736440</link>
      <description>Thank you for your reply. Yes you are right</description>
      <pubDate>Fri, 12 Jul 2019 05:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-two-month-fields/m-p/1601636#M736440</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-07-12T05:18:06Z</dc:date>
    </item>
  </channel>
</rss>

