<?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: RangeSum cumulative total does not match actual data in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051798#M86471</link>
    <description>&lt;P&gt;I started over and it still looks like it won't accumulate correctly.&amp;nbsp; Just using the basics; I selected one commodity, LTC, and one week of data.&amp;nbsp; There are no calculated dimensions.&amp;nbsp; I changed the label for Shipped Qty so it reflects the name of the measure more precisely, so now it's labeled Equiv Qty.&amp;nbsp; &amp;nbsp;I tried with and without Total in the expression but I'm getting the same results:&lt;/P&gt;
&lt;P&gt;Cumulative: RangeSum(Above(sum(EquivalentQuantity),0,RowNo()))&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1679439146080.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103243i3A85E7F119123D0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1679439146080.png" alt="mikegrattan_0-1679439146080.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 22:54:48 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2023-03-21T22:54:48Z</dc:date>
    <item>
      <title>RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2050289#M86340</link>
      <description>&lt;P&gt;I'm working with the following table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_2-1679006068445.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102966i4697CB30A2140DF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_2-1679006068445.png" alt="mikegrattan_2-1679006068445.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The goal is to get the cumulative total number&amp;nbsp; to match the sum of the actual Qty Shipped column.&amp;nbsp; Is that possible?&amp;nbsp; Here is the expression for the cumulative column:&lt;/P&gt;
&lt;P&gt;Aggr(RangeSum(Above(sum(EquivalentQuantity),0,RowNo())),&lt;BR /&gt;(CommodityCode,(Numeric,Ascending),(Text(Ascending)),&lt;BR /&gt;(StartOfWeek), (Numeric, Ascending), (Text, Ascending)),&lt;BR /&gt;(ShipDate, (Numeric, Ascending), (Text, Ascending)))&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 22:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2050289#M86340</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-03-16T22:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051126#M86400</link>
      <description>&lt;P&gt;Did you try it without the aggr() stuff, just?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RangeSum(Above(sum(EquivalentQuantity),0,RowNo()))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 13:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051126#M86400</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-20T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051187#M86409</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;Here are the results when I remove the aggr():&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1679325032307.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103145i05B2F13F5A2423C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1679325032307.png" alt="mikegrattan_0-1679325032307.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm filtering on one week.&amp;nbsp; My understanding is that the aggr() is needed, along with the dimension sorting, in order to get a cumulative total by week.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 15:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051187#M86409</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-03-20T15:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051216#M86413</link>
      <description>&lt;P&gt;It depends in regard to the used dimensions within the chart and the default-ordering of the object. Regarding to your first screenshot it looked that a normal cumulation-calculation might be usable. Before looking further add a TOTAL to the above and see if it changed the results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051216#M86413</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-20T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051236#M86418</link>
      <description>&lt;P&gt;The expression now looks like this:&lt;/P&gt;
&lt;P&gt;RangeSum(Above(Total sum(EquivalentQuantity),0,RowNo()))&lt;/P&gt;
&lt;P&gt;But the numbers look exactly the same as they did without the Total.&amp;nbsp; I am currently filtering on a single week and a single CommodityCode; same as last scree shot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051236#M86418</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-03-20T16:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051248#M86421</link>
      <description>&lt;P&gt;The expression&amp;nbsp;&lt;SPAN&gt;sum(EquivalentQuantity) is the same as QTY Shipped or is it different?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051248#M86421</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-20T17:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051253#M86423</link>
      <description>&lt;P&gt;Yes, I'm just using a different label for the table column.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051253#M86423</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-03-20T17:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051380#M86428</link>
      <description>&lt;P&gt;I wouldn't expect such behaviour by a "classical" data-structure - in data-model + object-design. Therefore I suggest to re-create the object from the scratch and step by step. At first with one dimension and the normal sum() + rangesum(above(sum())) without any further measures in regard to sorting, coloring and so on (regardless if fixed set or calculated) or alternate states and similar stuff.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will exclude any possible corruption of the object and showing which measure leads to the seen behaviour. Just a guess - the cause may a calculated dimension ....&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 06:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051380#M86428</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-21T06:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051798#M86471</link>
      <description>&lt;P&gt;I started over and it still looks like it won't accumulate correctly.&amp;nbsp; Just using the basics; I selected one commodity, LTC, and one week of data.&amp;nbsp; There are no calculated dimensions.&amp;nbsp; I changed the label for Shipped Qty so it reflects the name of the measure more precisely, so now it's labeled Equiv Qty.&amp;nbsp; &amp;nbsp;I tried with and without Total in the expression but I'm getting the same results:&lt;/P&gt;
&lt;P&gt;Cumulative: RangeSum(Above(sum(EquivalentQuantity),0,RowNo()))&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1679439146080.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103243i3A85E7F119123D0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1679439146080.png" alt="mikegrattan_0-1679439146080.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 22:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051798#M86471</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-03-21T22:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051931#M86483</link>
      <description>&lt;P&gt;Please try it again with:&amp;nbsp;&lt;SPAN&gt;RangeSum(Above(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; sum(EquivalentQuantity),0,RowNo()))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 09:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2051931#M86483</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-22T09:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2052124#M86495</link>
      <description>&lt;P&gt;Marcus,&lt;/P&gt;
&lt;P&gt;It looks like my edited comment didn't get saved last night.&amp;nbsp; I tried with Total as well and got the same results.&amp;nbsp; However, I did discover that there's a Modifier option that I overlooked before.&amp;nbsp; Once I set that to Accumulation, I got the correct results but they are in reverse order. Note that the Modifier option created a new expression:&lt;/P&gt;
&lt;P&gt;Aggr(RangeSum(Above(Total (　aggr(RangeSum(Above(sum(EquivalentQuantity),0,RowNo())),ShipDate,CommodityCode)　) , 0, 6)),&lt;BR /&gt;[$(=Replace(GetObjectField(1),']',']]'))], ([$(=Replace(GetObjectField(0),']',']]'))], (Numeric, Descending)))&lt;/P&gt;
&lt;P&gt;I changed the sort to Ascending and got the correct results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_5-1679498683151.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103289i0178685AAA5EC9DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_5-1679498683151.png" alt="mikegrattan_5-1679498683151.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 15:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2052124#M86495</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-03-22T15:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2052147#M86497</link>
      <description>&lt;P&gt;If it's worked now it's ok. but I think it should work without the aggr() stuff. At least in QlikView I wouldn't have needed it - with the default properties of the chart-calculation (I never change them). Maybe those properties are different and/or even extended in Sense ...&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 15:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2052147#M86497</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-22T15:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum cumulative total does not match actual data</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2052168#M86499</link>
      <description>&lt;P&gt;I tried the "Accumulation" Modifier without Aggr and it did not come up with the correct results.&amp;nbsp; It looks like it needs the Aggr for whatever reason. Then the modifier creates an output expression which can be copy/pasted into the expression builder and you can set the Modifier back to None.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1679501402504.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103296iFC5FEC2E6B7FE777/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1679501402504.png" alt="mikegrattan_0-1679501402504.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 16:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-cumulative-total-does-not-match-actual-data/m-p/2052168#M86499</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2023-03-22T16:47:57Z</dc:date>
    </item>
  </channel>
</rss>

