<?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 Pivot table subtotal partial sum not calculating correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-subtotal-partial-sum-not-calculating-correctly/m-p/1521178#M747887</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;So I have a pivot table where I simply want the subtotal (partial sum) to be the sum of the row values.&lt;/P&gt;&lt;P&gt;I read a ton of posts and me &amp;amp; a colleague spent about 7 hours trying every form of SUM and AGGR we could think of, but simply cannot get it to total correctly.&lt;/P&gt;&lt;P&gt;On the attached example, Overspend for A&amp;nbsp; should sub total -60 and not -35, and Underspend for A should total 25, but come back with nothing !, similarly subtotals for B should be -43 and 153 respectively.&lt;/P&gt;&lt;P&gt;Can anyone please assist here with some Christmas magic ?!?!?!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:57:31 GMT</pubDate>
    <dc:creator>bobpants</dc:creator>
    <dc:date>2024-11-16T04:57:31Z</dc:date>
    <item>
      <title>Pivot table subtotal partial sum not calculating correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-subtotal-partial-sum-not-calculating-correctly/m-p/1521178#M747887</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;So I have a pivot table where I simply want the subtotal (partial sum) to be the sum of the row values.&lt;/P&gt;&lt;P&gt;I read a ton of posts and me &amp;amp; a colleague spent about 7 hours trying every form of SUM and AGGR we could think of, but simply cannot get it to total correctly.&lt;/P&gt;&lt;P&gt;On the attached example, Overspend for A&amp;nbsp; should sub total -60 and not -35, and Underspend for A should total 25, but come back with nothing !, similarly subtotals for B should be -43 and 153 respectively.&lt;/P&gt;&lt;P&gt;Can anyone please assist here with some Christmas magic ?!?!?!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-subtotal-partial-sum-not-calculating-correctly/m-p/1521178#M747887</guid>
      <dc:creator>bobpants</dc:creator>
      <dc:date>2024-11-16T04:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table subtotal partial sum not calculating correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-subtotal-partial-sum-not-calculating-correctly/m-p/1521181#M747889</link>
      <description>&lt;P&gt;Try these expressions&lt;/P&gt;&lt;P&gt;OverSpend&lt;/P&gt;&lt;PRE&gt;Sum(Aggr(RangeMin(Sum(Budget) - Sum(Spend), 0), Branch, Department))&lt;/PRE&gt;&lt;P&gt;UnderSpend&lt;/P&gt;&lt;PRE&gt;Sum(Aggr(RangeMax(Sum(Budget) - Sum(Spend), 0), Branch, Department))&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-subtotal-partial-sum-not-calculating-correctly/m-p/1521181#M747889</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-14T17:34:27Z</dc:date>
    </item>
  </channel>
</rss>

