<?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 totals in pivot table when using nested variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/cumulative-totals-in-pivot-table-when-using-nested-variables/m-p/999063#M339710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a few weeks off this, i came back to it this today and could see clearer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how my expression ended up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//The rangesum fuction is passing itself and the cumulative total from the column before &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vDemandCoveredPercent)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vDemandCoveredPercent)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ColumnNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98543_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 12:42:18 GMT</pubDate>
    <dc:creator>tracysmart</dc:creator>
    <dc:date>2015-09-10T12:42:18Z</dc:date>
    <item>
      <title>cumulative totals in pivot table when using nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/cumulative-totals-in-pivot-table-when-using-nested-variables/m-p/999062#M339709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this has had me scratching my head for a while now so i thought i would ask my question to you my peers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do a cumulative total within a pivot table which in theory should be straightforward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97017_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I want column %Cumulative to be the cumulative total of the row above/column before %DemandCovered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for %Cumulative column one it would be 166.37&lt;/P&gt;&lt;P&gt;%Cumulative column 2 it would be 166.37&amp;nbsp; + 151.22&lt;/P&gt;&lt;P&gt;%Cumulative column 3 would be 166.37 + 151.22 + -11.57 (These percentages are not quite right in themselves but that is another issue involving the data and calculation!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying using the rangesum function, i have also experimented with both ABOVE and BEFORE but i am going round in circles with this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if the layout of the pivot table, which is how it is needed, and the fact i am nesting variables in my expressions is making this more difficult than it should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice/help woud be greatly appreciated&lt;/P&gt;&lt;P&gt;Tracy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 10:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cumulative-totals-in-pivot-table-when-using-nested-variables/m-p/999062#M339709</guid>
      <dc:creator>tracysmart</dc:creator>
      <dc:date>2015-08-26T10:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative totals in pivot table when using nested variables</title>
      <link>https://community.qlik.com/t5/QlikView/cumulative-totals-in-pivot-table-when-using-nested-variables/m-p/999063#M339710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a few weeks off this, i came back to it this today and could see clearer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how my expression ended up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//The rangesum fuction is passing itself and the cumulative total from the column before &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vDemandCoveredPercent)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;before&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vDemandCoveredPercent)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ColumnNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98543_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 12:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cumulative-totals-in-pivot-table-when-using-nested-variables/m-p/999063#M339710</guid>
      <dc:creator>tracysmart</dc:creator>
      <dc:date>2015-09-10T12:42:18Z</dc:date>
    </item>
  </channel>
</rss>

