<?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 Month End Flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-End-Flag/m-p/218294#M71455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Dates are interpreted as numeric values by QlikView. They are usually integers, but the MonthEnd() function returns the las hour, minute and second of that day, so you have to round the number to be interpreted as integer. The following should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;IF(Date(Date,'DD/MM/YYYY') = &lt;B&gt;Date(Floor(MonthEnd(Date)),'DD/MM/YYYY')&lt;/B&gt;,1,0)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Feb 2011 12:50:30 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-02-16T12:50:30Z</dc:date>
    <item>
      <title>Month End Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Month-End-Flag/m-p/218293#M71454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to set up a flag for month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;IF(Date(Date,'DD/MM/YYYY') = MonthEnd(Date(Date,'DD/MM/YYYY')),1,0) as MonthEnd&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;From Table.&lt;/P&gt;&lt;P&gt;Why is this not assigning a '1' to the last Date of each month?&lt;/P&gt;&lt;P&gt;Driving me nuts!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-End-Flag/m-p/218293#M71454</guid>
      <dc:creator />
      <dc:date>2011-02-16T12:36:58Z</dc:date>
    </item>
    <item>
      <title>Month End Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Month-End-Flag/m-p/218294#M71455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Dates are interpreted as numeric values by QlikView. They are usually integers, but the MonthEnd() function returns the las hour, minute and second of that day, so you have to round the number to be interpreted as integer. The following should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;IF(Date(Date,'DD/MM/YYYY') = &lt;B&gt;Date(Floor(MonthEnd(Date)),'DD/MM/YYYY')&lt;/B&gt;,1,0)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-End-Flag/m-p/218294#M71455</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-16T12:50:30Z</dc:date>
    </item>
    <item>
      <title>Month End Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Month-End-Flag/m-p/218295#M71456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked a treat!&lt;/P&gt;&lt;P&gt;Kudos!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-End-Flag/m-p/218295#M71456</guid>
      <dc:creator />
      <dc:date>2011-02-16T12:56:09Z</dc:date>
    </item>
  </channel>
</rss>

