<?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: Current rolling 12 months, plus previous rolling 12 months calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-rolling-12-months-plus-previous-rolling-12-months/m-p/1043943#M940840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create Rolling 24 months in the script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 18:25:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-21T18:25:50Z</dc:date>
    <item>
      <title>Current rolling 12 months, plus previous rolling 12 months calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Current-rolling-12-months-plus-previous-rolling-12-months/m-p/1043942#M940839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy new year, hope it was a good break for everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query around rolling 12 months. I have seem many calculations around 12 months from today, however I am looking for an additional piece of calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say I have months from Dec 15 all the way back Jan 13.&lt;/P&gt;&lt;P&gt;Then whenever I select one of those months in the range, I have the calculation to show me the current 12 months, however I also require the previous 12 months from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I select Dec 15;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Current rolling 12 months - Jan15 to Dec15&lt;/LI&gt;&lt;LI&gt;Previous rolling 12 months - Jan14 to Dec14&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I select Nov 15;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Current rolling 12 months - Dec14 to Nov15&lt;/LI&gt;&lt;LI&gt;Previous rolling 12 months - Dec13 to Nov14&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following calculation, which works for the Current rolling 12 months, but can't see to get the Previous one working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period_Start_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=MonthStart(AddMonths(Max(Period_Start_Date),-11)))&amp;lt;$(=MonthEnd(Max(Period_Start_Date)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount_Local]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any ideas, would be much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 11:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-rolling-12-months-plus-previous-rolling-12-months/m-p/1043942#M940839</guid>
      <dc:creator>marcus_steggall</dc:creator>
      <dc:date>2016-01-21T11:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Current rolling 12 months, plus previous rolling 12 months calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Current-rolling-12-months-plus-previous-rolling-12-months/m-p/1043943#M940840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create Rolling 24 months in the script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-rolling-12-months-plus-previous-rolling-12-months/m-p/1043943#M940840</guid>
      <dc:creator />
      <dc:date>2016-01-21T18:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Current rolling 12 months, plus previous rolling 12 months calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Current-rolling-12-months-plus-previous-rolling-12-months/m-p/1043944#M940841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your expression make sure that MonthStart function return the same date format like Period_Start_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other method is create MonthNumber field having 1, 2, 3,4, 5, ....etc for Month ascending order &amp;amp; try below expression.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({Month_Number={"&amp;gt;=$(=Max(MonthNumber)-11&amp;lt;=$(=Max(MonthNumber))"}} Amount_Local)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-rolling-12-months-plus-previous-rolling-12-months/m-p/1043944#M940841</guid>
      <dc:creator />
      <dc:date>2016-01-21T18:29:30Z</dc:date>
    </item>
  </channel>
</rss>

