<?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: Total Sum in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/482000#M180125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, your suggestion works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2013 14:24:38 GMT</pubDate>
    <dc:creator>orital81</dc:creator>
    <dc:date>2013-11-05T14:24:38Z</dc:date>
    <item>
      <title>Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/481997#M180122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have an expression which has a different total in the pivot totals expression.&lt;/P&gt;&lt;P&gt;I would like to adjust the expression to fit pivot table total sum calculation.&lt;/P&gt;&lt;P&gt;The top table (straight) has a Correct Total Sum&lt;/P&gt;&lt;P&gt;the table below is a pivot which has a different sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;/P&gt;&lt;P&gt;If(Sum({&amp;lt;Proj_type = {'scc'}&amp;gt;} Sum_Expense)=0,sum({&amp;lt;Proj_type = {'mcc'}&amp;gt;}Sum_Expense),sum({&amp;lt;Proj_type = {'scc'}&amp;gt;}Sum_Expense))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/48581_untitled.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my attached example, user/pass: servit/servit123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 13:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/481997#M180122</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-11-05T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/481998#M180123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The straight table has total as "sum of rows".&amp;nbsp; If you change it to "expression total", the result is the same as in pivot table.&lt;/P&gt;&lt;P&gt;In situations like this, in most cases the "Expression total" is a "more correct" result, if I may say so.&amp;nbsp; For example, some data may be correctly taken into account in more than one row.&amp;nbsp; If you use "sum of rows", you get it double-counted.&amp;nbsp; "Expression total" eliminates double-counting.&lt;/P&gt;&lt;P&gt;Of course I am not aware about the specifics of your rules.&amp;nbsp; Just explaining the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/481998#M180123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-05T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/481999#M180124</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;To get a 'sum of rows' calculation in a pivot table, use an aggr like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(Sum({&amp;lt;Proj_type = {'scc'}&amp;gt;} Sum_Expense)=0,sum({&amp;lt;Proj_type = {'mcc'}&amp;gt;}Sum_Expense),sum({&amp;lt;Proj_type = {'scc'}&amp;gt;}Sum_Expense))&lt;/SPAN&gt;, &lt;EM&gt;PivotDim1, PivotDim2,&lt;/EM&gt;...))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace PivotDimn with all the pivot table dimensions, separated by commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/481999#M180124</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-11-05T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/482000#M180125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, your suggestion works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/482000#M180125</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-11-05T14:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sum in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/482001#M180126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael, this was helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sum-in-Pivot-Table/m-p/482001#M180126</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-11-05T14:25:08Z</dc:date>
    </item>
  </channel>
</rss>

