<?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 in Pivot for cumulating in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811100#M533395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That small change did the job. Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 11:05:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-20T11:05:17Z</dc:date>
    <item>
      <title>RangeSum in Pivot for cumulating</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811096#M533391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today i tried to create some cumulated values within a pivot table with time on the X-axis. For that purpose I used two formulas, one for actual values and one for the cumuluated values:&lt;/P&gt;&lt;P&gt;Actual: =sum(Wareneingangsmenge)&lt;/P&gt;&lt;P&gt;Cumulate: =RangeSum(Actual,Before([Actual cum.]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;If there are values for each dimension the calculations work perfectly. However, if actual values are missing right from the beginning, then some random values will begin to pop up at a random months within the table. Those values are highlighted red in the graph below. Of course there should be zeros. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strangely enough, those values will change if I change the label of the dimension "CostCentre"!!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80853_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Did anyone discover the same problem? What would be an alternative to calculate those values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811096#M533391</guid>
      <dc:creator />
      <dc:date>2015-03-16T13:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum in Pivot for cumulating</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811097#M533392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian, before() can be tricky when there are null values, if you can upload a sample I can try to look for a solution, without a sample it's very hard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811097#M533392</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-03-16T14:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum in Pivot for cumulating</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811098#M533393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;luckily i got the solution to the described problem:&lt;/P&gt;&lt;P&gt;RangeSum(Before(sum(Wareneingangsmenge),0,RowNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this formula doesn't work with multiple dimensions in a pivot. Attached you will find an example file, with multiple dimensions. The objective is to calculate a cumulative value with respect to Version, Leistungsart and Month. The cumulative and the actual value should both be sensitive to selections in Year and Period. Meaning, that only the values that i see should be cumulated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appreciate a solution to this problem!&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 15:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811098#M533393</guid>
      <dc:creator />
      <dc:date>2015-03-17T15:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum in Pivot for cumulating</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811099#M533394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian, I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Before(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;Version={'IST'}&amp;gt;}Verbrauchsmenge)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,0,ColumnNo())) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to work, check it because there are too many values to check and i only checked a few.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 15:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811099#M533394</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-03-17T15:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum in Pivot for cumulating</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811100#M533395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That small change did the job. Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-in-Pivot-for-cumulating/m-p/811100#M533395</guid>
      <dc:creator />
      <dc:date>2015-03-20T11:05:17Z</dc:date>
    </item>
  </channel>
</rss>

