<?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 sum rows in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-rows-in-a-pivot-table/m-p/187680#M51269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read through other posts on this and I have not been able to get the syntax correct.&lt;/P&gt;&lt;P&gt;In the screen shot below I am calculating a charge amount for each school based on the % of leads each school had multiplied by a total charge number loaded in for each source.&lt;/P&gt;&lt;P&gt;My issue now is that when the total column in the pivot is displayed the charge amount is using the expression instead of the total amount of charge from each source.&lt;/P&gt;&lt;P&gt;If we look at the first row in the example the total charge should be 201.54+170.77, instead the total column is recalculating the % and charge. From reading the manual as well as the forum this looks like I have to use the AGGR function but i cannot get it to work correctly.&lt;/P&gt;&lt;P&gt;When I try an expression like this all i see are -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SUM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;thanks for any help&lt;/H4&gt;(&lt;B&gt;AGGR&lt;/B&gt;(&lt;B&gt;[Share]&lt;/B&gt;*&lt;B&gt;SUM&lt;/B&gt;(&lt;B&gt;dimBackCharge.Expense&lt;/B&gt;),&lt;B&gt;dimBackCharge.Source&lt;/B&gt;,&lt;B&gt;dimSchool.AISchools&lt;/B&gt;) &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2292_sourceID:2292" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 14:26:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-03T14:26:40Z</dc:date>
    <item>
      <title>sum rows in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/sum-rows-in-a-pivot-table/m-p/187680#M51269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have read through other posts on this and I have not been able to get the syntax correct.&lt;/P&gt;&lt;P&gt;In the screen shot below I am calculating a charge amount for each school based on the % of leads each school had multiplied by a total charge number loaded in for each source.&lt;/P&gt;&lt;P&gt;My issue now is that when the total column in the pivot is displayed the charge amount is using the expression instead of the total amount of charge from each source.&lt;/P&gt;&lt;P&gt;If we look at the first row in the example the total charge should be 201.54+170.77, instead the total column is recalculating the % and charge. From reading the manual as well as the forum this looks like I have to use the AGGR function but i cannot get it to work correctly.&lt;/P&gt;&lt;P&gt;When I try an expression like this all i see are -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SUM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;thanks for any help&lt;/H4&gt;(&lt;B&gt;AGGR&lt;/B&gt;(&lt;B&gt;[Share]&lt;/B&gt;*&lt;B&gt;SUM&lt;/B&gt;(&lt;B&gt;dimBackCharge.Expense&lt;/B&gt;),&lt;B&gt;dimBackCharge.Source&lt;/B&gt;,&lt;B&gt;dimSchool.AISchools&lt;/B&gt;) &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2292_sourceID:2292" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 14:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-rows-in-a-pivot-table/m-p/187680#M51269</guid>
      <dc:creator />
      <dc:date>2010-09-03T14:26:40Z</dc:date>
    </item>
  </channel>
</rss>

