<?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 Current Month Last Year Flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Month-Last-Year-Flag/m-p/1275300#M400661</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;I'm using the below expression to get the Last day of Current Month for Last Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: =AddYears(MonthEnd(Today(),0),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of 2/29/2016, it is giving me 2/28/2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2017 19:00:07 GMT</pubDate>
    <dc:creator>satishkurra</dc:creator>
    <dc:date>2017-02-01T19:00:07Z</dc:date>
    <item>
      <title>Current Month Last Year Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Last-Year-Flag/m-p/1275300#M400661</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;I'm using the below expression to get the Last day of Current Month for Last Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: =AddYears(MonthEnd(Today(),0),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of 2/29/2016, it is giving me 2/28/2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 19:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Last-Year-Flag/m-p/1275300#M400661</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2017-02-01T19:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Last Year Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Last-Year-Flag/m-p/1275301#M400662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, technically, you calculate the last day in February 2017, which is 2/28/2016 and then subtract one year from that, and it gives you 2/28/2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, try to subtract one year back from today() and then calculate the MonthEnd of that. That should give you the last day in February 2016:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MonthEnd(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;AddYears(Today(),-1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Munich, Germany!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 19:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Last-Year-Flag/m-p/1275301#M400662</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-02-01T19:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month Last Year Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-Last-Year-Flag/m-p/1275302#M400663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Silly mistake but costly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for correcting me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 20:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-Last-Year-Flag/m-p/1275302#M400663</guid>
      <dc:creator>satishkurra</dc:creator>
      <dc:date>2017-02-01T20:09:37Z</dc:date>
    </item>
  </channel>
</rss>

