<?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 % Totals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470870#M1162475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table as shown below. there is an expression which calculates the % which is working per line but the subtotals and totals are not working. (As you can see it shows 33.33% for each. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how i can fix this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions used are ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Score&lt;/P&gt;&lt;P&gt;Sum(Score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Percentage&lt;/P&gt;&lt;P&gt;=sum(Score)/sum({&amp;lt;City=&amp;gt;}(aggr(NODISTINCT sum( Score), Country)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25643" class="jive-image" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/25643_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2012 14:00:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-27T14:00:28Z</dc:date>
    <item>
      <title>Pivot table % Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470870#M1162475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table as shown below. there is an expression which calculates the % which is working per line but the subtotals and totals are not working. (As you can see it shows 33.33% for each. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how i can fix this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions used are ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Score&lt;/P&gt;&lt;P&gt;Sum(Score)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Percentage&lt;/P&gt;&lt;P&gt;=sum(Score)/sum({&amp;lt;City=&amp;gt;}(aggr(NODISTINCT sum( Score), Country)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25643" class="jive-image" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/25643_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 14:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470870#M1162475</guid>
      <dc:creator />
      <dc:date>2012-11-27T14:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table % Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470871#M1162476</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(Score)/sum(TOTAL&amp;lt;City&amp;gt; aggr(sum(Score),&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Continent,Country, City&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TMF&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: tmendesf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 14:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470871#M1162476</guid>
      <dc:creator />
      <dc:date>2012-11-27T14:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table % Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470872#M1162477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TMF,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works for the totals but now each line reports as 100% as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25645" class="jive-image" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/25645_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 14:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470872#M1162477</guid>
      <dc:creator />
      <dc:date>2012-11-27T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table % Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470873#M1162478</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=sum(Score)/sum(TOTAL&amp;lt;City&amp;gt; aggr(sum(Score),&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Continent,Country&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 14:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470873#M1162478</guid>
      <dc:creator />
      <dc:date>2012-11-27T14:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table % Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470874#M1162479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks again but now im getting some lines reporting nothing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nottingham for example should be reporting 20/35*100 =&amp;nbsp; 57.14% but is showing -&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="25649" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/25649_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 14:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470874#M1162479</guid>
      <dc:creator />
      <dc:date>2012-11-27T14:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table % Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470875#M1162480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 14:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470875#M1162480</guid>
      <dc:creator />
      <dc:date>2012-11-27T14:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table % Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470876#M1162481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, yes here is a sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 15:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470876#M1162481</guid>
      <dc:creator />
      <dc:date>2012-11-27T15:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table % Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470877#M1162482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Dimensionality()=3, sum(Score)/sum(total &amp;lt;Country,Continent&amp;gt; Score),&lt;/P&gt;&lt;P&gt;if(Dimensionality()=2, sum(Score)/sum(total &amp;lt;Continent&amp;gt; Score),&lt;/P&gt;&lt;P&gt;sum(Score)/sum(total Score)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 15:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Totals/m-p/470877#M1162482</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-27T15:08:05Z</dc:date>
    </item>
  </channel>
</rss>

