<?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: Calculation of the last past month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083527#M465802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need of AddMonths() when using MonthStart() Or MonthEnd().&amp;nbsp; This is the best one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=MonthStart(Max(Date),-2))&amp;lt;=$(=MonthEnd(Max(Date)))"}&amp;gt;} Std)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&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; font-size: 12px; background-color: #f2f2f2;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&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; font-size: 12px; background-color: #f2f2f2;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;jagan.&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; font-size: 12px; background-color: #f2f2f2;"&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; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 00:45:31 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2016-03-07T00:45:31Z</dc:date>
    <item>
      <title>Calculation of the last past month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083521#M465796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my report I have to calculate "Std." for the last 3 Month --&amp;gt; Feb, Jan, Dez, Nov. &lt;/P&gt;&lt;P&gt;I have problems by changing of the year.&lt;/P&gt;&lt;P&gt;In my global variable (Variablenliste) I calculate the past month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PreviousMonth_1&lt;/P&gt;&lt;P&gt;if(((num($(CurrentMonth)-1))='0' or num($(CurrentMonth))-1)='-1' or (num($(CurrentMonth)-1))='-2', num($(CurrentMonth)-1)+12, num($(CurrentMonth)-1) )&lt;/P&gt;&lt;P&gt;PreviousMonth_2&lt;/P&gt;&lt;P&gt;if((num(month(today())-2))='-1' or (num($(CurrentMonth)-2))='-2' or (num($(CurrentMonth)-2))='0', num($(CurrentMonth)-2)+12,num($(CurrentMonth)-2) )&lt;/P&gt;&lt;P&gt;PreviousMonth_3&lt;/P&gt;&lt;P&gt;if((num(month(today())-3))='-1' or (num($(CurrentMonth)-3))='-2' or (num($(CurrentMonth)-3))='0', num($(CurrentMonth)-3)+12,num($(CurrentMonth)-3) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my diagram (pivottable) I use follow formel: &lt;/P&gt;&lt;P&gt;(sum({&amp;lt; Month = {"$(=$(PreviousMonth_3) )"}&amp;gt;} Std)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Month = {"$(=$(PreviousMonth_2) )"}&amp;gt;} Std)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Month = {"$(=$(PreviousMonth_1) )"}&amp;gt;} Std))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working wrong, because I don't change the year: =num(Year(today()))-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data I have records for 2015 only for November and Dezember. By other calculation I do: &lt;/P&gt;&lt;P&gt;if (Year='2015',&lt;/P&gt;&lt;P&gt;(sum({&amp;lt; Month = {"$(=max(Month))"}&amp;gt;} Std)),&amp;nbsp; &lt;/P&gt;&lt;P&gt;(sum({&amp;lt; Month = {"$(=min(Month)+11)"}&amp;gt;} Std))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I calculate the sum of the last 3 month including change of the year?&lt;/P&gt;&lt;P&gt;Do you have another suggestions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083521#M465796</guid>
      <dc:creator />
      <dc:date>2016-03-03T16:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of the last past month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083522#M465797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possible to share a sample? It would be much easier and faster to help you that ways &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 17:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083522#M465797</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-03T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of the last past month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083523#M465798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;BR /&gt;Example: I have following table:&lt;/P&gt;&lt;P&gt;Year, Month, Std&lt;/P&gt;&lt;P&gt;2015,11, 10&lt;/P&gt;&lt;P&gt;2015, 12, 15&lt;/P&gt;&lt;P&gt;2016, 01,15&lt;/P&gt;&lt;P&gt;2016, 02, 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have Sum of Std for the last 3 mont: 20+15+15 &lt;/P&gt;&lt;P&gt;My Formel is doing: 2016-02 + 2016.01 + 201&lt;SPAN style="text-decoration: underline;"&gt;6&lt;/SPAN&gt;.12&lt;/P&gt;&lt;P&gt;The month is correctly calculated, but not the year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The month I calculate as follow: &lt;/P&gt;&lt;P&gt;PreviousMonth_1&lt;/P&gt;&lt;P&gt;if(((num($(CurrentMonth)-1))='0' or num($(CurrentMonth))-1)='-1' or (num($(CurrentMonth)-1))='-2', num($(CurrentMonth)-1)+12, num($(CurrentMonth)-1) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Sum: &lt;/P&gt;&lt;P&gt;(sum({&amp;lt; Month = {"$(=$(PreviousMonth_3) )"}&amp;gt;} Std)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Month = {"$(=$(PreviousMonth_2) )"}&amp;gt;} Std)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt; Month = {"$(=$(PreviousMonth_1) )"}&amp;gt;} Std))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 08:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083523#M465798</guid>
      <dc:creator />
      <dc:date>2016-03-04T08:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of the last past month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083524#M465799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have a date field in your Data model then you can try below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Year=, Quarter=, Month=, Week=, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date={‘&amp;gt;=$(=MonthStart(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max(Date)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, -3))&amp;lt;=$(=MonthEnd(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max(Date), -1&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))’}&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Check this link for lot of similar expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;&lt;A href="https://community.qlik.com/docs/DOC-9144"&gt;Set Analysis for Rolling Periods&lt;/A&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; font-size: 13px;"&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; font-size: 13px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 08:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083524#M465799</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-03-04T08:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of the last past month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083525#M465800</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year, Month, Std,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MakeDate(Year, Month) AS Date&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year, Month, Std&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2015,11, 10&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2015, 12, 15&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2016, 01,15&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2016, 02, 20];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And use below expression&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Sum({&amp;lt;Year=, Month=, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Date={‘&amp;gt;=$(=MonthStart(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Max(Date)&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, -3))&amp;lt;=$(=MonthEnd(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Max(Date), -1&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;))’}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Std&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 08:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083525#M465800</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-03-04T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of the last past month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083526#M465801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer. It was helpful. I have modified your formel:&lt;/P&gt;&lt;P&gt;--&amp;gt; AddMonths(MonthStart(Max(Date)),-2), because this one is only substract the Days and not the month: &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MonthStart(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Max(Date)&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, -3): &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; Sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=AddMonths(MonthStart(Max(Date)),-2))&amp;lt;=$(=MonthEnd(Max(Date)))"}&amp;gt;} Std))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 14:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083526#M465801</guid>
      <dc:creator />
      <dc:date>2016-03-04T14:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of the last past month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083527#M465802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need of AddMonths() when using MonthStart() Or MonthEnd().&amp;nbsp; This is the best one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=MonthStart(Max(Date),-2))&amp;lt;=$(=MonthEnd(Max(Date)))"}&amp;gt;} Std)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&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; font-size: 12px; background-color: #f2f2f2;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&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; font-size: 12px; background-color: #f2f2f2;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;jagan.&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; font-size: 12px; background-color: #f2f2f2;"&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; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 00:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-the-last-past-month/m-p/1083527#M465802</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-03-07T00:45:31Z</dc:date>
    </item>
  </channel>
</rss>

