<?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 Incorrect totals in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-totals-in-a-pivot-table/m-p/190232#M52831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're certain you just want the sum of the rows, you should be able to do it by adding the underlined part (untested):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(aggr(sum({&amp;lt;[Calendar Year]={$(=max([Calendar Year]))},Inforce={'Y'}&amp;gt;} [Customer Counter])&lt;BR /&gt; ,[Beginning Fleet Indicator],[Calendar Year],[Calendar Month]))&lt;/P&gt;&lt;P&gt;Pivot tables generally don't do sums of rows. They simply apply the expression again. In this case, do you perhaps have 347 customers that were both fleet and non-fleet in January 2009? I suspect that would cause what you are seeing, as by default, it wouldn't double-count those customers. Might be something else, of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2009 03:31:00 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-12-17T03:31:00Z</dc:date>
    <item>
      <title>Incorrect totals in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-totals-in-a-pivot-table/m-p/190231#M52830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting incorrect totals in my pivot table:&lt;/P&gt;&lt;P&gt;&lt;!--StartFragment--&gt;&lt;/P&gt;&lt;TABLE bgcolor="white" border="1" bordercolor="white" cellpadding="0" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR align="left" bgcolor="white"&gt;&lt;TH bgcolor="silver"&gt;&lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TH bgcolor="#EBEBEB"&gt;&lt;B&gt;Calendar Year&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TD align="right" bgcolor="white"&gt;2009&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" bgcolor="white"&gt;&lt;TH bgcolor="#EBEBEB"&gt;&lt;B&gt;Beginning Fleet Indicator&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TH bgcolor="#EBEBEB"&gt;&lt;B&gt;Calendar Month&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;/TH&gt;&lt;TD align="right" bgcolor="white"&gt;Jan&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" bgcolor="white"&gt;&lt;TD bgcolor="white"&gt;Non-Fleet&lt;/TD&gt;&lt;TD bgcolor="white"&gt;&lt;/TD&gt;&lt;TD align="right" bgcolor="white"&gt;26837&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" bgcolor="white"&gt;&lt;TD bgcolor="white"&gt;Fleet&lt;/TD&gt;&lt;TD bgcolor="white"&gt;&lt;/TD&gt;&lt;TD align="right" bgcolor="white"&gt;1941&lt;/TD&gt;&lt;/TR&gt;&lt;TR align="left" bgcolor="#F5F5F5"&gt;&lt;TD bgcolor="#F5F5F5"&gt;&lt;B&gt;Total&lt;/B&gt;&lt;/TD&gt;&lt;TD bgcolor="#F5F5F5"&gt;&lt;/TD&gt;&lt;TD align="right" bgcolor="#F5F5F5"&gt;&lt;B&gt;28431&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;!--StartFragment--&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;!--StartFragment--&gt;&lt;P&gt;Dimensions are Beginning Fleet Indicator, Calendar Year and Calendar Month. I am using Parial Sum for Beginning Fleet Indicator.&lt;/P&gt;&lt;P&gt;The expression looks like this:&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;[Calendar Year] = {&lt;B&gt;&lt;I&gt;$(=Max([Calendar Year]))&lt;/I&gt;&lt;/B&gt;}, Inforce = {'Y'}&amp;gt;} [Customer Counter])&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;!--StartFragment--&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 01:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-totals-in-a-pivot-table/m-p/190231#M52830</guid>
      <dc:creator />
      <dc:date>2009-12-17T01:53:21Z</dc:date>
    </item>
    <item>
      <title>Incorrect totals in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-totals-in-a-pivot-table/m-p/190232#M52831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're certain you just want the sum of the rows, you should be able to do it by adding the underlined part (untested):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(aggr(sum({&amp;lt;[Calendar Year]={$(=max([Calendar Year]))},Inforce={'Y'}&amp;gt;} [Customer Counter])&lt;BR /&gt; ,[Beginning Fleet Indicator],[Calendar Year],[Calendar Month]))&lt;/P&gt;&lt;P&gt;Pivot tables generally don't do sums of rows. They simply apply the expression again. In this case, do you perhaps have 347 customers that were both fleet and non-fleet in January 2009? I suspect that would cause what you are seeing, as by default, it wouldn't double-count those customers. Might be something else, of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 03:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-totals-in-a-pivot-table/m-p/190232#M52831</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-17T03:31:00Z</dc:date>
    </item>
    <item>
      <title>Incorrect totals in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-totals-in-a-pivot-table/m-p/190233#M52832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. That did it. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 03:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-totals-in-a-pivot-table/m-p/190233#M52832</guid>
      <dc:creator />
      <dc:date>2009-12-17T03:57:05Z</dc:date>
    </item>
  </channel>
</rss>

