<?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 Pivot Table Column Total &amp; Subtotal Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259368#M585635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having a pretty strange problem here. I have a pivot table with different expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions are as simple as sum(value), sum(price) and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of my expressions has a division, like sum(value * price)/sum(quantity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For every other expression in my pivot table, the totals and sub totals are correct, but for this expression, the totals and sub totals are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this please?&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, 09 Aug 2011 09:52:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-09T09:52:12Z</dc:date>
    <item>
      <title>Pivot Table Column Total &amp; Subtotal Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259368#M585635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having a pretty strange problem here. I have a pivot table with different expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions are as simple as sum(value), sum(price) and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of my expressions has a division, like sum(value * price)/sum(quantity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For every other expression in my pivot table, the totals and sub totals are correct, but for this expression, the totals and sub totals are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this please?&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, 09 Aug 2011 09:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259368#M585635</guid>
      <dc:creator />
      <dc:date>2011-08-09T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Pivot Table Column Total &amp; Subtotal Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259369#M585636</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;the pivot table totals are always calculated as expression total (like putting the expression in a text box). &lt;/P&gt;&lt;P&gt;(for more details see also the chapter "nested aggregations and related issues" - "sum of rows in pivot tables" in the Help file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see what the exact problem in your case is, it would be best if you could post an example file demonstrating your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 10:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259369#M585636</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-09T10:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Column Total &amp; Subtotal Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259370#M585637</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;I have attached a sample app to explain my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My subtotals and overall total in the pivot table are wrong, as the pivot table for some reason does not sum the total and sub total values correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I am using two groups, I tried using the aggr function, but couldn't get it to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please I need help to get my total and sub total values right.&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, 09 Aug 2011 15:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259370#M585637</guid>
      <dc:creator />
      <dc:date>2011-08-09T15:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Column Total &amp; Subtotal Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259371#M585638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I look at your pivot with dimensions Country and Product Type I see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="653"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Country&lt;/TD&gt;&lt;TD class="xl63" width="138"&gt;Product Type&lt;/TD&gt;&lt;TD class="xl64" width="98"&gt;Value&lt;/TD&gt;&lt;TD class="xl64" width="93"&gt;Weighted Value&lt;/TD&gt;&lt;TD class="xl64" width="98"&gt;Count&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Canada&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none;"&gt;Furniture&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£140.295&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£731&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;192&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;730,7031&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Canada&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none;"&gt;Office&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£155.745&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£811&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;192&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;811,1719&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Canada&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;£296.040&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;£771&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: medium none;"&gt;384&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;770,9375&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Mexico&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none;"&gt;Furniture&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£93.427&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£487&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;192&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;486,599&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Mexico&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none;"&gt;Office&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£106.639&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£555&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;192&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;555,4115&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Mexico&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;£200.066&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;£521&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: medium none;"&gt;384&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;521,0052&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;U.S.A.&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none;"&gt;Furniture&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£457.179&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£794&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;576&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;793,7129&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;U.S.A.&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none;"&gt;Office&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£451.422&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: medium none;"&gt;£784&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none;"&gt;576&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;783,718&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;U.S.A.&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;£908.600&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;£789&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: medium none;"&gt;1152&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;788,7155&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;Total&lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;£1.404.706&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: medium none;"&gt;£732&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: medium none;"&gt;1920&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;731,6178&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I 've added last two columns to show count and average value calculated in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Weighted Value seems ok to me, also in subtotals and total. For a given segment, the subtotal Wighted Value is of course &lt;EM&gt;not the &lt;/EM&gt;average of the Weighted Values of the single rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you give an example of what you expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 15:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259371#M585638</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-09T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Column Total &amp; Subtotal Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259372#M585639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. In the total line for say Canada. I don't want the total for the Weighted Value to be the average of 731 and 811. I want it to be a sum. I want it to just display the sum of (731+811). Just the same way the value column adds the values together for the total row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have made myself clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259372#M585639</guid>
      <dc:creator />
      <dc:date>2011-08-09T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Column Total &amp; Subtotal Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259373#M585640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should work as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(aggr(avg(Actual),[New Group],[New Group2]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for my curiosity: how do you interprete/use the sum of average or weighted values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edited by swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 22:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259373#M585640</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-09T22:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Column Total &amp; Subtotal Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259374#M585641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;﻿Thanks for all your help Stefan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really like weighted values as well, but my boss would like to use them in this application to determine the relative importance of each quantity on the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 08:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259374#M585641</guid>
      <dc:creator />
      <dc:date>2011-08-10T08:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Column Total &amp; Subtotal Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259375#M585642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Razor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even I faced such type of problem in my Pivot.... You can get perfect subtotal if you use&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(.....Put your entire Expression here.....))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If still you didnt get correct total then let me know...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yojas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 13:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Column-Total-Subtotal-Problem/m-p/259375#M585642</guid>
      <dc:creator />
      <dc:date>2013-09-30T13:26:28Z</dc:date>
    </item>
  </channel>
</rss>

