<?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: Cumulative sum in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362929#M493957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/d.pranskus" id="jive-482623605421224346419" style="background-color: #f9f9f9; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;d.pranskus&lt;/A&gt; in the BEFORE() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifying an &lt;SPAN style="font-style: italic;"&gt;offset&lt;/SPAN&gt; greater than 1 lets you move the evaluation of &lt;SPAN style="font-style: italic;"&gt;expression&lt;/SPAN&gt; to columns further to the left of the current column. A negative &lt;SPAN style="font-style: italic;"&gt;offset&lt;/SPAN&gt; number will actually make the &lt;SPAN class="Bold"&gt;before&lt;/SPAN&gt; function equivalent to a &lt;SPAN class="Bold"&gt;after&lt;/SPAN&gt; function with the corresponding positive &lt;SPAN style="font-style: italic;"&gt;offset&lt;/SPAN&gt; number. Specifying an &lt;SPAN style="font-style: italic;"&gt;offset&lt;/SPAN&gt; of 0 will evaluate the &lt;SPAN style="font-style: italic;"&gt;expression&lt;/SPAN&gt; on the current column. Recursive calls will return NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the collumns are dynamic. Does it still apply, or did i miss something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2012 09:31:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-23T09:31:31Z</dc:date>
    <item>
      <title>Cumulative sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362925#M493953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having some problem calculating a cumulative sum in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dynamic number of months m1, m2, m3 .... on top as column headers and a number of products in the first column.&lt;/P&gt;&lt;P&gt;I need to have a cumulative sum of sales by month number by product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the number of months m1, m2, m3 is dynamic based on the period selected i was thinking of using ColumnNo() to get the last column and do a sum using Rangesum from Column(1) to Column() using the before() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I somehow cant get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions onthe syntax or other methods for doing thr same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to a solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 08:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362925#M493953</guid>
      <dc:creator />
      <dc:date>2012-04-23T08:09:08Z</dc:date>
    </item>
    <item>
      <title>Cumulative sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362926#M493954</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;If i well understood your problem, try this expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rangesum(before(sum(Sales),0,ColumnNo()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColumnNo() is use for the 'count' of before function. Refer to the notice for more explaination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 08:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362926#M493954</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-04-23T08:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362927#M493955</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;Actually BEFORE() function has third parameter where you can specify how many columns before you want to aggregate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers Darius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 08:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362927#M493955</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2012-04-23T08:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362928#M493956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christophebrault,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer. That's what i was looking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) But I also need to specify the starting collumn number to start the cumulative calculation( for example from column 2 as column 1 has labels).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 09:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362928#M493956</guid>
      <dc:creator />
      <dc:date>2012-04-23T09:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362929#M493957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/d.pranskus" id="jive-482623605421224346419" style="background-color: #f9f9f9; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;d.pranskus&lt;/A&gt; in the BEFORE() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifying an &lt;SPAN style="font-style: italic;"&gt;offset&lt;/SPAN&gt; greater than 1 lets you move the evaluation of &lt;SPAN style="font-style: italic;"&gt;expression&lt;/SPAN&gt; to columns further to the left of the current column. A negative &lt;SPAN style="font-style: italic;"&gt;offset&lt;/SPAN&gt; number will actually make the &lt;SPAN class="Bold"&gt;before&lt;/SPAN&gt; function equivalent to a &lt;SPAN class="Bold"&gt;after&lt;/SPAN&gt; function with the corresponding positive &lt;SPAN style="font-style: italic;"&gt;offset&lt;/SPAN&gt; number. Specifying an &lt;SPAN style="font-style: italic;"&gt;offset&lt;/SPAN&gt; of 0 will evaluate the &lt;SPAN style="font-style: italic;"&gt;expression&lt;/SPAN&gt; on the current column. Recursive calls will return NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the collumns are dynamic. Does it still apply, or did i miss something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 09:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-in-pivot-table/m-p/362929#M493957</guid>
      <dc:creator />
      <dc:date>2012-04-23T09:31:31Z</dc:date>
    </item>
  </channel>
</rss>

