<?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: The show total function in Pivot table is not correct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447705#M167082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know buddy. Say hi to Stanley and good luck with the development!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Johannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 02:50:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-19T02:50:23Z</dc:date>
    <item>
      <title>The show total function in Pivot table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447702#M167079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * &lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[Category,Revenue&lt;/P&gt;&lt;P&gt;'A',0&lt;/P&gt;&lt;P&gt;'B',100&lt;/P&gt;&lt;P&gt;'C',200&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I use one pivot table to show the revenue. However, as you can see, there is no revenue for A category, so I assigned the revenue from B to A with the expression by&amp;nbsp; if(Category='A',sum({&amp;lt;Category={'B'}&amp;gt;}total&amp;nbsp; Revenue),sum(Revenue))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works well, but the total number is not right, the total number should be 400 not 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the QVW, could you help me out?&lt;/P&gt;&lt;P&gt;&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, 19 Feb 2013 02:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447702#M167079</guid>
      <dc:creator />
      <dc:date>2013-02-19T02:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: The show total function in Pivot table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447703#M167080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heya Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value on the Total row will be calculated just like for the other dimension values just that the Category value is null for this row. This means that the Category &amp;lt;&amp;gt; A and the total will only calculate the sum(Revenue) part which is 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use aggr() to create the "sum of rows" functionality for a pivot table that you're looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;sum(aggr(if(Category='A',sum({&amp;lt;Category={'B'}&amp;gt;}total&amp;nbsp; Revenue),sum(Revenue)), Category))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 02:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447703#M167080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-19T02:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: The show total function in Pivot table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447704#M167081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks fore your correct answer, I am Isaac Li.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 02:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447704#M167081</guid>
      <dc:creator />
      <dc:date>2013-02-19T02:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: The show total function in Pivot table is not correct</title>
      <link>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447705#M167082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know buddy. Say hi to Stanley and good luck with the development!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Johannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 02:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-show-total-function-in-Pivot-table-is-not-correct/m-p/447705#M167082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-19T02:50:23Z</dc:date>
    </item>
  </channel>
</rss>

