<?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 - partial sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762456#M1038081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in your expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&amp;lt;&amp;gt;'1',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let me know whether it worked or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 14:45:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-18T14:45:45Z</dc:date>
    <item>
      <title>Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762449#M1038074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have constructed a pivot table and have set up a partial sum to calculate my total column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is an average of my headcount. However, for my TOTAL column also works the average out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the example below, instead of having 8.77 as a total, I want 16.50 + 49.4 + 2.10 + 8.00 + 3.00&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; = 79&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="avg.JPG" class="image-1 jive-image" height="58" src="https://community.qlik.com/legacyfs/online/73823_avg.JPG" style="height: 58px; width: 2247.5px;" width="2248" /&gt;&lt;/P&gt;&lt;P&gt;How can I acheive this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 13:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762449#M1038074</guid>
      <dc:creator />
      <dc:date>2014-12-18T13:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762450#M1038075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post your expression and some sample data if possible. Without knowing more, I assume that some aggregation function (for example sum) is missing from your expression. Try adjusting that, then let me know what happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 13:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762450#M1038075</guid>
      <dc:creator />
      <dc:date>2014-12-18T13:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762451#M1038076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tibor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my expression reads as '=Aggr(Only({1&amp;lt; Entity = P({1&amp;lt; Region={'ASIA'}&amp;gt;} Entity) &amp;gt;} Entity), Region, Entity)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried encasing it within the sum expression but it didn't quite work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 14:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762451#M1038076</guid>
      <dc:creator />
      <dc:date>2014-12-18T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762452#M1038077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you say that per dimensions the expression gives you correct values, but when subtotaling, the number you get is not the sum of averages, but the average of averages? It would be much of help if you could post a picture with your table and data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 14:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762452#M1038077</guid>
      <dc:creator />
      <dc:date>2014-12-18T14:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762453#M1038078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok , attached is an example, so instead of getting 12.5, I want&amp;nbsp; 11+12+13+14 = 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="avg.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73825_avg.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 14:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762453#M1038078</guid>
      <dc:creator />
      <dc:date>2014-12-18T14:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762454#M1038079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are not insisting on using a pivot table, you can achive waht you want by changing the type to straight table, then on the expression tab, checking sum of rows.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 14:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762454#M1038079</guid>
      <dc:creator />
      <dc:date>2014-12-18T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762455#M1038080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I agree that this can be done in a table. However, I need to use the pivot table. In my app where my real data resides, a table isn't sufficient in terms of the layout as it is a Profit and Loss piece. Hence why I want to use a pivot. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 14:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762455#M1038080</guid>
      <dc:creator />
      <dc:date>2014-12-18T14:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762456#M1038081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in your expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;dimensionality&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()&amp;lt;&amp;gt;'1',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let me know whether it worked or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 14:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762456#M1038081</guid>
      <dc:creator />
      <dc:date>2014-12-18T14:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762457#M1038082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tibor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes in the example I gave you, its worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to figure out why it isn't working in my app now!&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>Thu, 18 Dec 2014 14:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762457#M1038082</guid>
      <dc:creator />
      <dc:date>2014-12-18T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762458#M1038083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think an expression like that should also work in your app. Maybe you wrote the expression incorrectly? What do you get now as a result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762458#M1038083</guid>
      <dc:creator />
      <dc:date>2014-12-18T15:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - partial sum</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762459#M1038084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I apply the same expression, it makes no difference in my application &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am encasing it within another IF statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(PLLineSort='HEADCOUNT (FTE)',&lt;/P&gt;&lt;P&gt;IF(Dimensionality() &amp;lt;&amp;gt; '1',&amp;nbsp; &lt;/P&gt;&lt;P&gt;num(sum({&amp;lt; TransactionType = {'PL'}, Type={'Actual'}, CAT={'Heads'}, MN_Num = {"&amp;gt;=$(vReportingYearStart)&amp;lt;=$(vReportingDate)"} &amp;gt;}[Value EUR]), 0.00),&lt;/P&gt;&lt;P&gt;num(avg({&amp;lt; TransactionType = {'PL'}, Type={'Actual'}, CAT={'Heads'}, MN_Num = {"&amp;gt;=$(vReportingYearStart)&amp;lt;=$(vReportingDate)"} &amp;gt;}[Value EUR]), 0.00)),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It still gives me the average at the total level&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-partial-sum/m-p/762459#M1038084</guid>
      <dc:creator />
      <dc:date>2014-12-18T15:27:56Z</dc:date>
    </item>
  </channel>
</rss>

