<?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 Wrong Total Sums in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200222#M58844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4274.test.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/4274.test.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 17:19:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-03T17:19:22Z</dc:date>
    <item>
      <title>Wrong Total Sums in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200219#M58841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table with two columns called Sales and Americas Take. If a sale happens outside of the Americas there is still a portion of the sale that is considered part of Americas. This is what the Americas Take number is. Here's a screen shot:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3483_sourceID:3483" /&gt;&lt;/P&gt;&lt;P&gt;You can see that the totals 215 + 550 + 500 do NOT equal 1350. The graph is showing 1350 because Americas sales is 300 before taking out the Americas Take number (85 in this case)&lt;/P&gt;&lt;P&gt;Here's the Sales column equation:&lt;/P&gt;&lt;P&gt;=if(RegionName='America', sum(SaleAmount)-sum(Total TakeAmount), sum(SaleAmount))&lt;/P&gt;&lt;P&gt;I'm trying to get the sum to show 1265. I have tried the following with no luck:&lt;/P&gt;&lt;P&gt;=if(RegionName='America', sum(aggr(sum(SaleAmount)-sum(Total TakeAmount), RegionName)), sum(SaleAmount))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any thoughts? Thanks. Attached is the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 16:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200219#M58841</guid>
      <dc:creator />
      <dc:date>2011-02-03T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Wrong Total Sums in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200220#M58842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moshea444,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved it for you I think.&lt;/P&gt;&lt;P&gt;Can I send you the "new file"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 17:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200220#M58842</guid>
      <dc:creator />
      <dc:date>2011-02-03T17:14:07Z</dc:date>
    </item>
    <item>
      <title>Wrong Total Sums in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200221#M58843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should be able to post it here right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 17:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200221#M58843</guid>
      <dc:creator />
      <dc:date>2011-02-03T17:18:02Z</dc:date>
    </item>
    <item>
      <title>Wrong Total Sums in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200222#M58844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4274.test.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/4274.test.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 17:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200222#M58844</guid>
      <dc:creator />
      <dc:date>2011-02-03T17:19:22Z</dc:date>
    </item>
    <item>
      <title>Wrong Total Sums in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200223#M58845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will send a screenshot&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3515.test.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3515.test.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 17:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200223#M58845</guid>
      <dc:creator />
      <dc:date>2011-02-03T17:20:00Z</dc:date>
    </item>
    <item>
      <title>Wrong Total Sums in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200224#M58846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, but I still want the Sales column to show 215 for america&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 17:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200224#M58846</guid>
      <dc:creator />
      <dc:date>2011-02-03T17:21:47Z</dc:date>
    </item>
    <item>
      <title>Wrong Total Sums in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200225#M58847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind I got it. You have to do aggr around the whole IF:&lt;/P&gt;&lt;P&gt;=sum(aggr(if(RegionName='America', sum(SaleAmount)-sum(Total TakeAmount), sum(SaleAmount)), LineName,RegionName))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 17:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200225#M58847</guid>
      <dc:creator />
      <dc:date>2011-02-03T17:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total Sums in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200226#M58848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are LineName and RegionName some fields? I have kind of the same problem but I'm not able to solve it with the aggr function cause I don't really understand how it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 08:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-Sums-in-Pivot-Table/m-p/200226#M58848</guid>
      <dc:creator />
      <dc:date>2012-10-22T08:33:55Z</dc:date>
    </item>
  </channel>
</rss>

