<?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: Help needed with date flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-with-date-flag/m-p/828053#M1018799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(Date#(MonthYr,'MMM-YYYY') &amp;lt;= Date(Today(),'MMM-YYYY'),0,1) as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 11:32:32 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-03-31T11:32:32Z</dc:date>
    <item>
      <title>Help needed with date flag</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-date-flag/m-p/828052#M1018797</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 trying to create a date flag in script, it looked simple but somehow im not able to get it working as required. My date column is in the format 'MMM-YYYY'. what i want to acheive is that if the date has passed then the flag should be set to 0 else 1, but im unable to get it working.&lt;/P&gt;&lt;P&gt;Ive used an expression like below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(floor(num(MonthYr))&amp;lt;=floor(num(date#(today(),'MMM-YYYY'))), 0, 1) as MonthYr_Flag&lt;/EM&gt;,&lt;/P&gt;&lt;P&gt;where the format of MonthYr is &lt;SPAN style="font-size: 13.3333330154419px;"&gt; 'MMM-YYYY'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-date-flag/m-p/828052#M1018797</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with date flag</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-date-flag/m-p/828053#M1018799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(Date#(MonthYr,'MMM-YYYY') &amp;lt;= Date(Today(),'MMM-YYYY'),0,1) as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-date-flag/m-p/828053#M1018799</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-31T11:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with date flag</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-date-flag/m-p/828054#M1018801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-date-flag/m-p/828054#M1018801</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:38:11Z</dc:date>
    </item>
  </channel>
</rss>

