<?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: accumulation within a month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484593#M1226150</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/185419"&gt;@let12&lt;/a&gt;&amp;nbsp; or better&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=sum(aggr(rangesum(above(total sum({&amp;lt;Week&amp;gt;}Quantity),0,mod(RowNo(total)-1,4)+1)),(Week,(NUMERIC,ASCENDING))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-01 at 10.29.51.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172369iC081E42DC07128F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-10-01 at 10.29.51.png" alt="Screenshot 2024-10-01 at 10.29.51.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 09:30:26 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-10-01T09:30:26Z</dc:date>
    <item>
      <title>accumulation within a month</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484274#M1226146</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;I would like to create an expression, which accumulates the weekly quantity by month.&lt;/P&gt;
&lt;P&gt;Every 4 weeks the quantity should be accumulated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a sample of data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="548"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="46px"&gt;Year&lt;/TD&gt;
&lt;TD width="112.798px" height="46px"&gt;Week&lt;/TD&gt;
&lt;TD width="112.855px" height="46px"&gt;sum(Quantity)&lt;/TD&gt;
&lt;TD width="257.5px" height="46px"&gt;Weekly accumulated quantity by month&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;1&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;0.00&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;0.00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;2&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;0.74&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;0.74&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;3&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;2.32&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;3.06&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;4&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;2.60&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;5.66&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;5&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;3.08&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;3.08&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;6&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;3.28&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;6.35&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;7&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;3.38&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;9.74&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;8&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;4.36&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;14.10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;9&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;3.98&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;3.98&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;10&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;6.56&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;10.55&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;11&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;6.85&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;17.40&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;12&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;6.92&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;24.31&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;13&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.50&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;5.50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;14&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.12&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;10.62&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;15&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;4.91&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;15.54&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;16&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.93&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;21.47&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;17&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;3.49&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;3.49&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;18&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.84&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;9.33&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;19&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;1.99&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;11.32&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;20&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.29&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;16.61&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;21&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;4.45&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;4.45&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;22&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;4.37&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;8.82&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;23&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.02&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;13.84&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;24&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;3.94&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;17.79&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;25&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.70&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;5.70&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;26&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;4.90&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;10.60&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;27&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.23&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;15.83&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="63.9347px" height="24px"&gt;2024&lt;/TD&gt;
&lt;TD width="112.798px" height="24px"&gt;28&lt;/TD&gt;
&lt;TD width="112.855px" height="24px"&gt;5.90&lt;/TD&gt;
&lt;TD width="257.5px" height="24px"&gt;21.73&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so far I tried this in QS:&lt;/P&gt;
&lt;P&gt;Create a line chart&lt;/P&gt;
&lt;P&gt;Dimension:&lt;/P&gt;
&lt;P&gt;- Week&lt;/P&gt;
&lt;P&gt;Expression:&lt;/P&gt;
&lt;P&gt;- sum({&amp;lt;Year = {$(=Max(Year))} &amp;gt;} Quantity)&lt;/P&gt;
&lt;P&gt;In the Line charts properties -&amp;gt; Measure -&amp;gt; Modificator -&amp;gt; Select Accumulation -&amp;gt; Step 4.&lt;/P&gt;
&lt;P&gt;This method does not bring me the expected values.&lt;/P&gt;
&lt;P&gt;Could anyone help me out here?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 11:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484274#M1226146</guid>
      <dc:creator>let12</dc:creator>
      <dc:date>2024-09-30T11:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation within a month</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484397#M1226147</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/185419"&gt;@let12&lt;/a&gt;&amp;nbsp; I actually never understood how modifier accumulation works but without modifier you can use below expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=sum(aggr(rangesum(above(total sum({&amp;lt;Week&amp;gt;}Quantity),0,mod(RowNo(total),5)+1)),(Week,(NUMERIC,ASCENDING))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-09-30 at 15.34.04.png" style="width: 531px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172338i0D6F9633D4E9DA57/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-09-30 at 15.34.04.png" alt="Screenshot 2024-09-30 at 15.34.04.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 14:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484397#M1226147</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-30T14:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation within a month</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484581#M1226148</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;, thank you for your reply. Your expression works fine for the Weeks 1-8, 15-18, 25-28, but for the other weeks sometimes the accommulation goes in 5 steps, which should be always in 4 steps. For example the accumulation starting from Week 5, has a step of 5 instead of 4. The accumulation goes from Week 4 until Week 9 while it should only go to Week 8 and from Week 9 the accumulation should repeat again.&lt;/P&gt;
&lt;P&gt;The accumulation should start with&lt;/P&gt;
&lt;P&gt;Week 1 Quantity = 3.98,&lt;/P&gt;
&lt;P&gt;Week 5 Quantity = 3.08&lt;/P&gt;
&lt;P&gt;Week 9 Quantity = 3.98&lt;/P&gt;
&lt;P&gt;Week 13 Quantity =&amp;nbsp; 5.5&lt;/P&gt;
&lt;P&gt;Week 17 Quantity = 3.49&lt;/P&gt;
&lt;P&gt;Week 21 Quantity = 4.45&lt;/P&gt;
&lt;P&gt;Week 25 Quantity =&amp;nbsp; 5.7&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 09:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484581#M1226148</guid>
      <dc:creator>let12</dc:creator>
      <dc:date>2024-10-01T09:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation within a month</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484587#M1226149</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/185419"&gt;@let12&lt;/a&gt;&amp;nbsp; I have updated formula as below&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=sum(aggr(rangesum(above(total sum({&amp;lt;Week&amp;gt;}Quantity),0,if(mod(RowNo(total),4)=0,4,mod(RowNo(total),4)))),(Week,(NUMERIC,ASCENDING))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 09:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484587#M1226149</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-01T09:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation within a month</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484593#M1226150</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/185419"&gt;@let12&lt;/a&gt;&amp;nbsp; or better&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=sum(aggr(rangesum(above(total sum({&amp;lt;Week&amp;gt;}Quantity),0,mod(RowNo(total)-1,4)+1)),(Week,(NUMERIC,ASCENDING))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-01 at 10.29.51.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172369iC081E42DC07128F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-10-01 at 10.29.51.png" alt="Screenshot 2024-10-01 at 10.29.51.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 09:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484593#M1226150</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-01T09:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation within a month</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484624#M1226151</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;, thank you for your solution. It works !&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 11:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2484624#M1226151</guid>
      <dc:creator>let12</dc:creator>
      <dc:date>2024-10-01T11:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: accumulation within a month</title>
      <link>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2487688#M1226192</link>
      <description>&lt;P&gt;Superb, very helpful solution!!!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 15:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/accumulation-within-a-month/m-p/2487688#M1226192</guid>
      <dc:creator>seanbruton</dc:creator>
      <dc:date>2024-10-17T15:02:36Z</dc:date>
    </item>
  </channel>
</rss>

