<?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: Accumulative sum by 2 dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Accumulative-sum-by-2-dimensions/m-p/1764999#M59158</link>
    <description>&lt;P&gt;This works properly.&lt;/P&gt;&lt;P&gt;Thank you Nicole!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 17:13:56 GMT</pubDate>
    <dc:creator>Ilhui</dc:creator>
    <dc:date>2020-11-27T17:13:56Z</dc:date>
    <item>
      <title>Accumulative sum by 2 dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulative-sum-by-2-dimensions/m-p/1764807#M59134</link>
      <description>&lt;P&gt;I'm trying to get a cumulative month to month sum on a table which is grouped by customer and year.&lt;/P&gt;&lt;P&gt;The idea is to sum "Total" value each month and then subtract that accumulated amount from the "CommittedSpend" column, which is the same for each year.&lt;/P&gt;&lt;P&gt;In the example below, first year of committed spent was $612,000 and the actual spent was $123,892 so the calculation was $612,000-$123,892=487,107.&lt;/P&gt;&lt;P&gt;On the second month, the spent was $175,997 and the accumulated spent was $300,890(124,892+175,995). Then the remaining was the subtraction of $612,000-$300,890 giving a result of 311,109, and so on.&lt;/P&gt;&lt;P&gt;This calculation should end on the 12th month of each year and then start again on the next year(if applied) for each customer.&lt;/P&gt;&lt;P&gt;I was using the code below, but that works only when a select a customer from a filter but it stops working if no selection is made.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; [CommittedSpend]-RANGESUM(ABOVE(TOTAL SUM(Total),0,12))&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="Ilhui_0-1606424891473.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44895i4A765A2A5A966000/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ilhui_0-1606424891473.png" alt="Ilhui_0-1606424891473.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulative-sum-by-2-dimensions/m-p/1764807#M59134</guid>
      <dc:creator>Ilhui</dc:creator>
      <dc:date>2024-11-16T01:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulative sum by 2 dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulative-sum-by-2-dimensions/m-p/1764998#M59157</link>
      <description>&lt;P&gt;The TOTAL keyword in the above() is telling Qlik to ignore all of your dimensions.&amp;nbsp; Since you want the dimensions taken into account with the cumulative sum, you cannot use the TOTAL function.&amp;nbsp; The following expression should work, but you will need to make sure your dimensions are ordered properly and the sorting is in the proper order:&lt;/P&gt;&lt;PRE&gt;rangesum(above(sum(Total), 0, RowNo()))&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Nov 2020 17:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulative-sum-by-2-dimensions/m-p/1764998#M59157</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2020-11-27T17:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulative sum by 2 dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Accumulative-sum-by-2-dimensions/m-p/1764999#M59158</link>
      <description>&lt;P&gt;This works properly.&lt;/P&gt;&lt;P&gt;Thank you Nicole!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 17:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Accumulative-sum-by-2-dimensions/m-p/1764999#M59158</guid>
      <dc:creator>Ilhui</dc:creator>
      <dc:date>2020-11-27T17:13:56Z</dc:date>
    </item>
  </channel>
</rss>

