<?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 of Partial Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557380#M480885</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 am not sure of the solution to your problem. If you dont want to post a sample qvw, at least provide the expression that gives you [performance points] and the expression for the average on the year total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use Dimensionality(), you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Dimensionality()+1, &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;EM&gt;expression for grand (facilitiesd) total,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; expression year total,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; expression for lowest level&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the italics with the expressions for each level. Note that Dimensionality() is a function, so you need the parentheses, and you cannot use Dimensionality in a set expression, as the set expression is evaluated once for the chart/table (before the individual lines/dimensions exist). Using Pick() like above makes it easy to add or remove levels and their expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 12:36:41 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2013-11-12T12:36:41Z</dc:date>
    <item>
      <title>Pivot Table Sum of Partial Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557377#M480882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the screenshot of my pivot table for 1 facility:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Customized Partial Sum PivotTable.png" class="jive-image" src="/legacyfs/online/48430_Customized Partial Sum PivotTable.png" style="width: 620px; height: 162px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to customize my partial sum of dimension "Year" to calculate the AVERAGE of the points for each facility for each year (i.e. the "Points" row). At the last row, I would like to do the SUM of 'Points' row of ALL hospitals to get the total score of all the facilities in the system. I am aware that I need to use the dimensionality() function and sum advanced aggregation function that I used to get the average; however, my expression does not seem to work, what I tried is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(dimentionality=0, sum({$&amp;lt;Dimentionality={1}&amp;gt;} aggr(performance points, Measure, Year, Facility))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide me with some guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 19:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557377#M480882</guid>
      <dc:creator />
      <dc:date>2013-10-31T19:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum of Partial Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557378#M480883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jihan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a similar task. Did you manage to find a solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557378#M480883</guid>
      <dc:creator>tduarte</dc:creator>
      <dc:date>2013-11-12T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum of Partial Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557379#M480884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(dimentionality=0, sum(total [performance points])).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement basically ignores all dimentioned and only considers the current selection. Alternatively you can also set the method of sub total to 'Sum of Rows' in the expression tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be heloful if you could post a sample QVW, so that we all can try to help you with a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557379#M480884</guid>
      <dc:creator />
      <dc:date>2013-11-12T12:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum of Partial Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557380#M480885</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 am not sure of the solution to your problem. If you dont want to post a sample qvw, at least provide the expression that gives you [performance points] and the expression for the average on the year total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use Dimensionality(), you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Dimensionality()+1, &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;EM&gt;expression for grand (facilitiesd) total,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; expression year total,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; expression for lowest level&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the italics with the expressions for each level. Note that Dimensionality() is a function, so you need the parentheses, and you cannot use Dimensionality in a set expression, as the set expression is evaluated once for the chart/table (before the individual lines/dimensions exist). Using Pick() like above makes it easy to add or remove levels and their expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557380#M480885</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-11-12T12:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum of Partial Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557381#M480886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan. I will try out the solution you suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 14:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557381#M480886</guid>
      <dc:creator />
      <dc:date>2013-11-12T14:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum of Partial Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557382#M480887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way that I eventually got this work out is to use double advanced aggregate function. First for the average, then for the sum. But the expressnion ends up really complicated...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 14:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557382#M480887</guid>
      <dc:creator />
      <dc:date>2013-11-12T14:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum of Partial Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557383#M480888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&lt;EM&gt;Pick(Dimensionality()+1 &lt;/EM&gt;sounds like a good solution as long as Pivoting is not allowed.&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.727272033691406px;"&gt;Please have a look at my discussion below, any help appreciated.&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.727272033691406px;"&gt;I doubt that it is possible but I need to aggregate dynamically based on the pivot dimension PLUS an extra one. This way I could allow pivoting.&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.727272033691406px;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/98380"&gt;http://community.qlik.com/thread/98380&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;for 1st dimension in pivot - &lt;EM&gt;Aggr(Sum(Sales),&lt;STRONG&gt;1stDimension&lt;/STRONG&gt;,ResellerID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;for 2nd dimension in pivot - &lt;EM&gt;Aggr(Sum(Sales),&lt;STRONG&gt;1stDimension,2ndDimension&lt;/STRONG&gt;,ResellerID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resuming, the default pivot aggregation plus &lt;EM&gt;ResellerID&lt;/EM&gt; - a dimension not in the pivot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557383#M480888</guid>
      <dc:creator>tduarte</dc:creator>
      <dc:date>2013-11-12T16:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Sum of Partial Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557384#M480889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jonathan i have query regarding the pivot table as i want the sum of final performance.&lt;IMG alt="mon.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76433_mon.PNG" style="height: 291px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;i worte the expression for the Final performance &lt;/P&gt;&lt;P&gt;=if(Dimensionality()=1,&lt;/P&gt;&lt;P&gt;[Coperate SLP]* [Performance],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as of now the dimensionality()=0 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 06:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Sum-of-Partial-Sum/m-p/557384#M480889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-28T06:03:56Z</dc:date>
    </item>
  </channel>
</rss>

