<?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: Subtotal showing Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608209#M224615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try by changing the total mode in the expressions tab to 'Sum' of rows and check if the result is as expected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2014 07:29:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-23T07:29:17Z</dc:date>
    <item>
      <title>Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608200#M224606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem happened in a pivot table which has a date dimension on the top and team dimension on the left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tick the subtotal check box and have 'AVG(AGGR(......),Team,Date)' in my expression, the subtotal on the top actually showing the average value for department.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to show the total of average value in individual department in the subtotal field and average in each department row?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;What I have now is followed.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="355.39999997615814" style="width: 170.39999997615814px; height: 331.39999997615814px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" width="85"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: none;" width="98"&gt;122&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;AC/Ops&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;461&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;BD&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;57&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;CRM&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;Finance/Legal&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;HR&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;IT&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;86&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;Leasing&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;266&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;Marketing&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;69&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;MGMT&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;PBI/MSG&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;Sales&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;78&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;Service Centre&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;212&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="border-top: none;"&gt;Fleet&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;147&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, the 122 is not the total of the values under. Is it possible to change the 122 to be the total?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 06:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608200#M224606</guid>
      <dc:creator />
      <dc:date>2014-04-23T06:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608201#M224607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Pivot Table, Subtotal is taking the Expression Total...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome the problem, you need to use Dimensionality() Function..&lt;/P&gt;&lt;P&gt;Kindly upload sample file, we can help you only..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 06:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608201#M224607</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-23T06:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608202#M224608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baikan,&lt;/P&gt;&lt;P&gt;On a pivot table the total is calculated as an expression total so you need to incorporate the sum to the expression. Try adding a sum at the beginning of your expression.&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 06:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608202#M224608</guid>
      <dc:creator>cfz</dc:creator>
      <dc:date>2014-04-23T06:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608203#M224609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain Dimensionality() to me?&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>Wed, 23 Apr 2014 06:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608203#M224609</guid>
      <dc:creator />
      <dc:date>2014-04-23T06:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608204#M224610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Carlos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it said there is an error after I add the sum in front of AVG()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 06:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608204#M224610</guid>
      <dc:creator />
      <dc:date>2014-04-23T06:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608205#M224611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just type Dimensionality()&amp;nbsp; as an expression... You will know it by the result.&amp;nbsp; If you provide sample data,&amp;nbsp; we can help you better way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 06:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608205#M224611</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-23T06:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608206#M224612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like&lt;/P&gt;&lt;P&gt;If(IsNull(RowNo()) OR RowNo()=0, Sum(Aggr( Avg( Aggr(...) ), Department)), Avg(Aggr(...))) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 06:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608206#M224612</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-04-23T06:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608207#M224613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This app has been developed for a while and it gets complicated. (I know I should keep it as simple as possible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry that I don't know how to make up some sample data to replicate the situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I type in Dimensionality() and all fields display 1 except for the subtotal row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is that mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 07:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608207#M224613</guid>
      <dc:creator />
      <dc:date>2014-04-23T07:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608208#M224614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baikang&lt;/P&gt;&lt;P&gt;You have to put sum(aggr(your expression), dimensions affected). If you upload the qvw I could try to look at it.&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 07:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608208#M224614</guid>
      <dc:creator>cfz</dc:creator>
      <dc:date>2014-04-23T07:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608209#M224615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try by changing the total mode in the expressions tab to 'Sum' of rows and check if the result is as expected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 07:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608209#M224615</guid>
      <dc:creator />
      <dc:date>2014-04-23T07:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608210#M224616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Baikang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a Sample may be clear your Doubt, as you are not able to attach your QVW it's hard to make you understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyways you can try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr(your expression), dimensions&lt;/SPAN&gt;, &amp;lt;your current Expression &amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be helpful to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 08:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608210#M224616</guid>
      <dc:creator>qlikpahadi07</dc:creator>
      <dc:date>2014-04-23T08:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608211#M224617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also if still you are not able to achieve try this:&lt;/P&gt;&lt;P&gt;change your pivot table to Straight &lt;/P&gt;&lt;P&gt;select the option highlighted below and check your result it must be as you wanted.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/57768_Untitled.png" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 08:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608211#M224617</guid>
      <dc:creator>qlikpahadi07</dc:creator>
      <dc:date>2014-04-23T08:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal showing Average</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608212#M224618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much&lt;A _jive_internal="true" class="font-color-meta-light localScroll" href="https://community.qlik.com/thread/115234#514044" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #a9a9a9;" title="Go to message"&gt; QlikPahadi07&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Thanks to everyone's help, I have found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Dimensionality().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;Remember my original expression is something like this: AVG(AGGR(SUM(......),Team,Date)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;Then I add a condition to check when dimensionality()=0, I took the Team out of AGGR. And the expression would average across Date for the total in Team.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;Thank you very one.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 23:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-showing-Average/m-p/608212#M224618</guid>
      <dc:creator />
      <dc:date>2014-04-23T23:40:38Z</dc:date>
    </item>
  </channel>
</rss>

