<?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 How to script that cumsum? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-script-that-cumsum/m-p/1670056#M593014</link>
    <description>&lt;P&gt;Pessoal é o seguinte:&lt;/P&gt;&lt;P&gt;I got a data series month to month.&amp;nbsp; There, I have the total of jobs in every december and its balance (could be a positive or negative value) in the other months.&lt;/P&gt;&lt;P&gt;Goal: do a 12 month cumulative sum starting from December of year X to next November X+1. CumSum from December X+1 to November X+2 and so on...&lt;/P&gt;&lt;P&gt;Like the pic above.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tabela.png" style="width: 446px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26921iCBAD8D4A2E823AAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabela.png" alt="tabela.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I solve by scripting?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:13:18 GMT</pubDate>
    <dc:creator>bernarducs</dc:creator>
    <dc:date>2024-11-16T19:13:18Z</dc:date>
    <item>
      <title>How to script that cumsum?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-script-that-cumsum/m-p/1670056#M593014</link>
      <description>&lt;P&gt;Pessoal é o seguinte:&lt;/P&gt;&lt;P&gt;I got a data series month to month.&amp;nbsp; There, I have the total of jobs in every december and its balance (could be a positive or negative value) in the other months.&lt;/P&gt;&lt;P&gt;Goal: do a 12 month cumulative sum starting from December of year X to next November X+1. CumSum from December X+1 to November X+2 and so on...&lt;/P&gt;&lt;P&gt;Like the pic above.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tabela.png" style="width: 446px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26921iCBAD8D4A2E823AAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabela.png" alt="tabela.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I solve by scripting?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-script-that-cumsum/m-p/1670056#M593014</guid>
      <dc:creator>bernarducs</dc:creator>
      <dc:date>2024-11-16T19:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to script that cumsum?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-script-that-cumsum/m-p/1670061#M593015</link>
      <description>&lt;P&gt;something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tmp:&lt;BR /&gt;LOAD ano_mes, sum(valores) as sumValores FROM ...source...&amp;nbsp; GROUP BY ano_mes;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ano_mes,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Right(ano_mes,2)=12, sumValores, rangesum(sumValores, peek(cumsumValores)) as cumsumValores&lt;BR /&gt;RESIDENT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tmp&lt;BR /&gt;ORDER BY&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ano_mes&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;DROP TABLE tmp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-script-that-cumsum/m-p/1670061#M593015</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2020-01-28T13:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to script that cumsum?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-script-that-cumsum/m-p/1678582#M593016</link>
      <description>&lt;P&gt;Here is a Design Blog post to check out too:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is the base URL for this area from which you can search further:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is another site from one of our MVPs that may have some stuff too:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://qlikviewcookbook.com/" target="_blank"&gt;https://qlikviewcookbook.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If the other post did work for you, be sure to return to your thread and use the Accept as Solution button on that post to give them credit for the help and let other Members know that worked for you.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-script-that-cumsum/m-p/1678582#M593016</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-02-24T15:21:34Z</dc:date>
    </item>
  </channel>
</rss>

