<?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 in Pivot Tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299514#M110959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have sort of understood your solution, however it still doesn't seem to have completely solved the problem. It seems to be ignoring the Year column altogther.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in each month is 1 so the table should read;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apr 2011 = 1&lt;/P&gt;&lt;P&gt;Apr 2012 = 1&lt;/P&gt;&lt;P&gt;May 2011 = 2&lt;/P&gt;&lt;P&gt;May 2012 = 2&lt;/P&gt;&lt;P&gt;Jun 2011 = 3&lt;/P&gt;&lt;P&gt;Jun 2012 = 3 etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have updated the file. Could you amend the file with what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Robbie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 15:43:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-23T15:43:47Z</dc:date>
    <item>
      <title>Accumulation in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299512#M110957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to accumulate values in a pivot table. I am using the BEFORE function to calculate the previous value + the current value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have seems to be the order of the dimensions. I need the pivot to look like example 1 (examples attached) but I can only get the correct numbers if I set the order like in example 2???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone think of a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou for you time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299512#M110957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-23T15:01:25Z</dc:date>
    </item>
    <item>
      <title>Accumulation in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299513#M110958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use Before to generate a range of values and then RangeSum to add them all together:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RangeSum(Before(total Sum(Value), 0, ColumnNo(total)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ColumnNo function has (total) because otherwise it resets at the change of year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299513#M110958</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-23T15:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299514#M110959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have sort of understood your solution, however it still doesn't seem to have completely solved the problem. It seems to be ignoring the Year column altogther.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in each month is 1 so the table should read;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apr 2011 = 1&lt;/P&gt;&lt;P&gt;Apr 2012 = 1&lt;/P&gt;&lt;P&gt;May 2011 = 2&lt;/P&gt;&lt;P&gt;May 2012 = 2&lt;/P&gt;&lt;P&gt;Jun 2011 = 3&lt;/P&gt;&lt;P&gt;Jun 2012 = 3 etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have updated the file. Could you amend the file with what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Robbie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 15:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299514#M110959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-23T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299515#M110960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha!&amp;nbsp; Sorry, I understand your problem now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only way that I can think of to do this off the top of my head is to add a load of Befores:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Value)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 2), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 4), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 6), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 8), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 10), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 12), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 14), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 16), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 18), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 20), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 22), 0)&lt;/P&gt;&lt;P&gt;+Alt(Before(Total Sum(Value), 24), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Alt makes sure that the ones that return Null will still be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299515#M110960</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-23T16:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulation in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299516#M110961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*BUMP*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers Stephen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody else think of a better solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 11:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulation-in-Pivot-Tables/m-p/299516#M110961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-24T11:34:42Z</dc:date>
    </item>
  </channel>
</rss>

