<?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 Rolling Quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter/m-p/1184223#M882513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do rolling quarters for the following data -&lt;/P&gt;&lt;P&gt;So, if I have selected Nov 2015, the result for both would be:　 646,718,034 (accumulating all of the yellow numbers).&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138847_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;this is the code I am using for Rolling 12 months:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-family: arial black,avant garde;"&gt;=Num(Sum({&amp;lt;[Account Description] = {'Total COGS'}, MonthYear = {"$(='&amp;gt;' &amp;amp; Date(AddMonths(Max(MonthYear), -12)) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(MonthYear)))"}, Year, Month, Quarter&amp;gt;} Actual),'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f4e79; font-size: 12pt; font-family: Calibri,Arial;"&gt;I’ve tried modifying this code, but am getting the &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Calibri,Arial;"&gt;WRONG number:　 768,163,421&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Calibri,Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Calibri,Arial;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial black,avant garde;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: arial black,avant garde; font-size: 10pt;"&gt;Num(Sum({&amp;lt;[Account Description] = {'Total COGS'}, &lt;BR /&gt; MonthYear = {"$(='&amp;gt;' &amp;amp; Date(AddYears(QuarterStart(Max(MonthYear)), -1)) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(MonthYear)))"}, Year, Month, Quarter&amp;gt;} &lt;BR /&gt; Actual&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: arial black,avant garde;"&gt;),'#,##0') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt; &lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/138873_pastedImage_9.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also, when I select Sep 2015 (the end month of the quarter (Mar, Jun, Sep, Dec) – it shouldn’t go back one quarter).　 The values should be (instead they equal the value of the quarter before):&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Mar 2015 = 649,309,604&lt;/P&gt;&lt;P&gt;Jun 2015 = 649,320,387&lt;/P&gt;&lt;P&gt;Sep 2015 = 646,718,034&lt;/P&gt;&lt;P&gt;Nov 2015 = 646,718,034&lt;/P&gt;&lt;P&gt;Dec 2015 = 632,718,241&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Does anyone know of a solution?　 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any assistance you can offer.&lt;/P&gt;&lt;P&gt;Kelly&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Rolling Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Quarter/m-p/1184223#M882513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do rolling quarters for the following data -&lt;/P&gt;&lt;P&gt;So, if I have selected Nov 2015, the result for both would be:　 646,718,034 (accumulating all of the yellow numbers).&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138847_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;this is the code I am using for Rolling 12 months:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff; font-family: arial black,avant garde;"&gt;=Num(Sum({&amp;lt;[Account Description] = {'Total COGS'}, MonthYear = {"$(='&amp;gt;' &amp;amp; Date(AddMonths(Max(MonthYear), -12)) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(MonthYear)))"}, Year, Month, Quarter&amp;gt;} Actual),'#,##0')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f4e79; font-size: 12pt; font-family: Calibri,Arial;"&gt;I’ve tried modifying this code, but am getting the &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Calibri,Arial;"&gt;WRONG number:　 768,163,421&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Calibri,Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt; font-family: Calibri,Arial;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial black,avant garde;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: arial black,avant garde; font-size: 10pt;"&gt;Num(Sum({&amp;lt;[Account Description] = {'Total COGS'}, &lt;BR /&gt; MonthYear = {"$(='&amp;gt;' &amp;amp; Date(AddYears(QuarterStart(Max(MonthYear)), -1)) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(MonthYear)))"}, Year, Month, Quarter&amp;gt;} &lt;BR /&gt; Actual&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: arial black,avant garde;"&gt;),'#,##0') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt; &lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/138873_pastedImage_9.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also, when I select Sep 2015 (the end month of the quarter (Mar, Jun, Sep, Dec) – it shouldn’t go back one quarter).　 The values should be (instead they equal the value of the quarter before):&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Mar 2015 = 649,309,604&lt;/P&gt;&lt;P&gt;Jun 2015 = 649,320,387&lt;/P&gt;&lt;P&gt;Sep 2015 = 646,718,034&lt;/P&gt;&lt;P&gt;Nov 2015 = 646,718,034&lt;/P&gt;&lt;P&gt;Dec 2015 = 632,718,241&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Does anyone know of a solution?　 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any assistance you can offer.&lt;/P&gt;&lt;P&gt;Kelly&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Quarter/m-p/1184223#M882513</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

