<?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: Pivot Table Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635651#M233129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing that may help answer this issue.&amp;nbsp; I have a fast change on the object.&amp;nbsp; When I view the data as a Straight table, the total is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 13:21:17 GMT</pubDate>
    <dc:creator>mphekin12</dc:creator>
    <dc:date>2014-06-02T13:21:17Z</dc:date>
    <item>
      <title>Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635645#M233123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="59943" alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/59943_Capture.JPG.jpg" /&gt;Can anyone please help out and tell me why the column titled 'Mix Builder' isn't summing correctly?&amp;nbsp; Every other column in the pivot table is correct except for this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635645#M233123</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2014-06-02T13:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635646#M233124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you expecting the total to be a sum of all the rows?&amp;nbsp; That's not how pivot tables work - the total row is calculated independently over the grouped dataset. The result may well not be the same as the sum of all the rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635646#M233124</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2014-06-02T13:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635647#M233125</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;hard to say without explanations.&lt;/P&gt;&lt;P&gt;What should it show ?&lt;/P&gt;&lt;P&gt;What is the expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635647#M233125</guid>
      <dc:creator />
      <dc:date>2014-06-02T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635648#M233126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the confusion.&amp;nbsp; Here is another screen shot with more information.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/59957_Capture.JPG.jpg" style="width: 620px; height: 175px;" /&gt;&lt;/P&gt;&lt;P&gt;So if you look at Group 1 Sales, Group 1 Cost, Group 1 Profit, Group 2 Sales, Group 2 Cost, or Group 2 Profit at a division level, all of the Total lines are correct.&amp;nbsp; If you look at the total line for Mix Builder it isn't.&amp;nbsp; I guess my question is why does the total work over all columns of data but not the Mix Builder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635648#M233126</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2014-06-02T13:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635649#M233127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the Mix Builder expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635649#M233127</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2014-06-02T13:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635650#M233128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to look this over.&amp;nbsp; Here is the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;Year=Group1::Year, Month=Group1::Month, Quarter=Group1::Quarter, Date=Group1::Date&amp;gt;} TOTAL&amp;lt;D.Country, D.Area, D.District, D.Division&amp;gt; Price_Ext)) *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(round(sum({$&amp;lt;Year=Group2::Year, Month=Group2::Month, Quarter=Group2::Quarter, Date=Group2::Date&amp;gt;} Price_Ext) / sum({$&amp;lt;Year=Group2::Year, Month=Group2::Month, Quarter=Group2::Quarter, Date=Group2::Date&amp;gt;} TOTAL&amp;lt;D.Country, D.Area, D.District, D.Division&amp;gt; Price_Ext), 0.00001)) *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(round(sum({$&amp;lt;Year=Group1::Year, Month=Group1::Month, Quarter=Group1::Quarter, Date=Group1::Date&amp;gt;} Profit) / sum({$&amp;lt;Year=Group1::Year, Month=Group1::Month, Quarter=Group1::Quarter, Date=Group1::Date&amp;gt;} Price_Ext), 0.00001)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635650#M233128</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2014-06-02T13:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635651#M233129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing that may help answer this issue.&amp;nbsp; I have a fast change on the object.&amp;nbsp; When I view the data as a Straight table, the total is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635651#M233129</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2014-06-02T13:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635652#M233130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How does this expression differ from the others?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635652#M233130</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2014-06-02T13:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635653#M233131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression isn't much different from the others.&amp;nbsp; The other columns actually build the Mix Builder column.&amp;nbsp; When I look at each segment of the formula individually it works correctly, but as a whole the total doesn't match.&amp;nbsp; I have verified that each individual line is correct, it is just the total that isn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635653#M233131</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2014-06-02T13:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635654#M233132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a lot of research (especially a post called 'Total Sum in Pivot Table') I figured out that I needed to wrap each segment of my formula in an aggr() function and then sum() the whole thing.&amp;nbsp; For anyone interested the following formula gives me my desired outcome:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr((sum({$&amp;lt;Year=Group1::Year, Month=Group1::Month, Quarter=Group1::Quarter, Date=Group1::Date&amp;gt;} TOTAL&amp;lt;D.Country, D.Area, D.District, D.Division&amp;gt; Price_Ext)), D.Country, D.Area, D.District, D.Division, [Major Line])&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; (round(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; aggr((sum({$&amp;lt;Year=Group2::Year, Month=Group2::Month, Quarter=Group2::Quarter, Date=Group2::Date&amp;gt;} Price_Ext)), D.Country, D.Area, D.District, D.Division, [Major Line])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; / &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; aggr((sum({$&amp;lt;Year=Group2::Year, Month=Group2::Month, Quarter=Group2::Quarter, Date=Group2::Date&amp;gt;} TOTAL&amp;lt;D.Country, D.Area, D.District, D.Division&amp;gt; Price_Ext)), D.Country, D.Area, D.District, D.Division, [Major Line])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , 0.00001)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ) &lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; (round(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; aggr((sum({$&amp;lt;Year=Group1::Year, Month=Group1::Month, Quarter=Group1::Quarter, Date=Group1::Date&amp;gt;} Profit)), D.Country, D.Area, D.District, D.Division, [Major Line])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; / &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; aggr((sum({$&amp;lt;Year=Group1::Year, Month=Group1::Month, Quarter=Group1::Quarter, Date=Group1::Date&amp;gt;} Price_Ext)), D.Country, D.Area, D.District, D.Division, [Major Line])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; , 0.00001)&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks to all that helped out!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 18:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum/m-p/635654#M233132</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2014-06-03T18:46:03Z</dc:date>
    </item>
  </channel>
</rss>

