<?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 Partial Sum in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-Sum-in-Pivot-Table/m-p/301955#M585859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem in Pivot Table which has the following columns:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6079_1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The Columns 1,2,4,5 are made using a simple Sum() expression. Column 3,6 have the Following calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column 3= Column2/Colum 1&lt;/P&gt;&lt;P&gt;Column 6= Column 5/Column4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&lt;/P&gt;&lt;P&gt;Column 7 = (Column3-Column6) * Column1&lt;/P&gt;&lt;P&gt;Column 8 = (Column2-Column4)* Column 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Pivot table, when I enable the partial totals, the Column1, 2, 3,4 gives a total of all the rows above thne Partial Sum. But for the Column 3, the partial sum value given is based on the expression "Column2/Colum 1". I want it instead to be the sum of row values above the Partial sum. The same thing applies for Col 6, 7 &amp;amp; 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the Sum(aggr()) for the expressions in the pivot table, but then when I expand the pivot table, I have ITEM_NO as the last dimension in the pivot table, which can repeat. The Sum(Aggr()), aggregates the value of all the similar ITEM_NO and displays the value against one of the ITEM_NO and shows 0 against the rest of them. You can see it in the attached qvw with this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions or help in this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chaitanya &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Jul 2011 09:13:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-24T09:13:05Z</dc:date>
    <item>
      <title>Partial Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-Sum-in-Pivot-Table/m-p/301955#M585859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem in Pivot Table which has the following columns:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6079_1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The Columns 1,2,4,5 are made using a simple Sum() expression. Column 3,6 have the Following calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column 3= Column2/Colum 1&lt;/P&gt;&lt;P&gt;Column 6= Column 5/Column4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&lt;/P&gt;&lt;P&gt;Column 7 = (Column3-Column6) * Column1&lt;/P&gt;&lt;P&gt;Column 8 = (Column2-Column4)* Column 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Pivot table, when I enable the partial totals, the Column1, 2, 3,4 gives a total of all the rows above thne Partial Sum. But for the Column 3, the partial sum value given is based on the expression "Column2/Colum 1". I want it instead to be the sum of row values above the Partial sum. The same thing applies for Col 6, 7 &amp;amp; 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the Sum(aggr()) for the expressions in the pivot table, but then when I expand the pivot table, I have ITEM_NO as the last dimension in the pivot table, which can repeat. The Sum(Aggr()), aggregates the value of all the similar ITEM_NO and displays the value against one of the ITEM_NO and shows 0 against the rest of them. You can see it in the attached qvw with this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions or help in this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chaitanya &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2011 09:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-Sum-in-Pivot-Table/m-p/301955#M585859</guid>
      <dc:creator />
      <dc:date>2011-07-24T09:13:05Z</dc:date>
    </item>
  </channel>
</rss>

