<?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 Calculate percentage values in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291016#M583990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach sample QV file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Mar 2012 07:14:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-18T07:14:22Z</dc:date>
    <item>
      <title>Calculate percentage values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291012#M583986</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 would like to calculate a percentage value within a pivot tabel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have done this before by creating a variable containing the total value and used it as the divisor in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But maybe there is a better way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Pivot Table should look similar to this one (right now only the exp1 columns are filled):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="jiveNoBorder" style="width: 500px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="height: 12.75pt; width: 60pt;" width="80"&gt;Month&lt;/TD&gt;&lt;TD class="xl23" style="width: 60pt;" width="80"&gt;Jan&lt;/TD&gt;&lt;TD class="xl23" style="width: 60pt;" width="80"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl23" style="width: 60pt;" width="80"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl23" style="width: 60pt;" width="80"&gt;Feb&lt;/TD&gt;&lt;TD class="xl23" style="width: 60pt;" width="80"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD class="xl23" style="width: 60pt;" width="80"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="height: 12.75pt;"&gt;KPI&lt;/TD&gt;&lt;TD class="xl23"&gt;Exp1&lt;/TD&gt;&lt;TD class="xl23"&gt;Exp2&lt;/TD&gt;&lt;TD class="xl23"&gt;%&lt;/TD&gt;&lt;TD class="xl23"&gt;Exp1&lt;/TD&gt;&lt;TD class="xl23"&gt;Exp2&lt;/TD&gt;&lt;TD class="xl23"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;KPI1&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;TD align="right"&gt;60&lt;/TD&gt;&lt;TD align="right"&gt;16,6666667&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right"&gt;90&lt;/TD&gt;&lt;TD align="right"&gt;22,2222222&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;KPI2&lt;/TD&gt;&lt;TD align="right"&gt;20&lt;/TD&gt;&lt;TD align="right"&gt;60&lt;/TD&gt;&lt;TD align="right"&gt;33,3333333&lt;/TD&gt;&lt;TD align="right"&gt;30&lt;/TD&gt;&lt;TD align="right"&gt;90&lt;/TD&gt;&lt;TD align="right"&gt;33,3333333&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="height: 12.75pt;"&gt;KPI3&lt;/TD&gt;&lt;TD align="right"&gt;30&lt;/TD&gt;&lt;TD align="right"&gt;60&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;TD align="right"&gt;40&lt;/TD&gt;&lt;TD align="right"&gt;90&lt;/TD&gt;&lt;TD align="right"&gt;44,4444444&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="height: 12.75pt;"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl22"&gt;60&lt;/TD&gt;&lt;TD class="xl22"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl22"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl22"&gt;90&lt;/TD&gt;&lt;TD class="xl22"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl22"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I calculate the Exp2 and % columns in QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to use this formular:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM([Values]) / SUM(Total [Values])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I do so I will get the same values for all Exp2 columns and not with reference to the month dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means if I make a "Total" all dimensions will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I ignore the KPI column on the first hand and reference to the month column on the other hand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 12:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291012#M583986</guid>
      <dc:creator />
      <dc:date>2011-11-02T12:02:22Z</dc:date>
    </item>
    <item>
      <title>Calculate percentage values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291013#M583987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I found the solution &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;The formular must be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM([Values]) / SUM(Total &amp;lt;[Month]&amp;gt; [Values])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also possible to do a set analysis with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[Country]={'DE'}&amp;gt;}[Values]) / SUM({&amp;lt;[Country]={'DE'}&amp;gt;}TOTAL &amp;lt;[Month]&amp;gt; [Values])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will limit the country field to Germany and will make a total over all dimension in chart except the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 12:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291013#M583987</guid>
      <dc:creator />
      <dc:date>2011-11-02T12:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291014#M583988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the below for your 2nd expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Values) / aggr(NODISTINCT sum(Values),Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sajeevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 12:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291014#M583988</guid>
      <dc:creator />
      <dc:date>2011-11-02T12:15:09Z</dc:date>
    </item>
    <item>
      <title>Calculate percentage values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291015#M583989</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 think you can solve my problem again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've dimemsions dim1,dim2,dim 3..in hierarchial format as in pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've a value column in the table, as one expr....i'm showing sum(value) and i also have dimension due date....&amp;amp; if the due date &amp;lt;today() date then in the expr column Overdue Amt i simply show sum(value) else i'll show it the Not due column...this is fine....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i've to find %Overdue &amp;amp; %Not due.....wich is Overdue Amt/sum(value) &amp;amp; Not Due Amt/sum(value) respectively...&lt;/P&gt;&lt;P&gt;i'm getting the % fine..for each row...but at the total level i dnt want to see sum of all % for Overdue &amp;amp; %Not Due&lt;/P&gt;&lt;P&gt;Bt only the sum of Overdue Amt/sum of Remainin Amt &amp;amp; same for %Not due as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help&lt;/P&gt;&lt;P&gt;stuck for 1 day cmplete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 10:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291015#M583989</guid>
      <dc:creator />
      <dc:date>2012-03-16T10:46:52Z</dc:date>
    </item>
    <item>
      <title>Calculate percentage values in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291016#M583990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach sample QV file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2012 07:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-percentage-values-in-pivot-table/m-p/291016#M583990</guid>
      <dc:creator />
      <dc:date>2012-03-18T07:14:22Z</dc:date>
    </item>
  </channel>
</rss>

