<?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 percentages based on second dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-percentages-based-on-second-dimension/m-p/768931#M273094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a pivot table with two dimensions. The second dimension is placed horizontally. My expression is as follows:&lt;/P&gt;&lt;P&gt;=IF((Heading3) = 1,'',&lt;/P&gt;&lt;P&gt;IF(Divide3=1,&lt;/P&gt;&lt;P&gt;num(Sum({$&amp;lt;Description3={'Food Cost'}&amp;gt;}Total MonthlyActivity*Multiplier3)&lt;/P&gt;&lt;P&gt;/Sum({$&amp;lt;Description3={'Food'}&amp;gt;}Total MonthlyActivity*Multiplier3),'#,##0.00%;(#,##0.00)%')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;IF(Divide3=2,&lt;/P&gt;&lt;P&gt;num(Sum({$&amp;lt;Description3={'Liquor Cost'}&amp;gt;}Total MonthlyActivity*Multiplier3)&lt;/P&gt;&lt;P&gt;/Sum({$&amp;lt;Description3={'Liquor'}&amp;gt;}Total MonthlyActivity*Multiplier3),'#,##0.00%;(#,##0.00)%')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;IF(Divide3=3,&lt;/P&gt;&lt;P&gt;num(Sum({$&amp;lt;Description3={'Wages'}&amp;gt;}Total MonthlyActivity*Multiplier3)&lt;/P&gt;&lt;P&gt;/Sum({$&amp;lt;Description3={'Total Income'}&amp;gt;}Total MonthlyActivity*Multiplier3),'#,##0.00%;(#,##0.00)%')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;IF(Divide3=4,&lt;/P&gt;&lt;P&gt;num(Sum({$&amp;lt;Description3={'Gross Profit'}&amp;gt;}Total MonthlyActivity*Multiplier3)&lt;/P&gt;&lt;P&gt;/Sum({$&amp;lt;Description3={'Total Income'}&amp;gt;}Total MonthlyActivity*Multiplier3),'#,##0.00%;(#,##0.00)%')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;num((sum(MonthlyActivity)*Multiplier3)/1000,'#,##0;(#,##0)'))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use TOTAL to establish correct % in the report layout. See attached images. The single dimension report works OK. (see attached) My issue is when I attempt with second dimension the % shown are for the total values than what is for the second dimension value which is placed as a column. How can I get around to achieve the correct percentages by column. i.e. (Refer Second Dimension Image) Food Cost/Income on first column should be 22/58 = 37.9% rather than showing 33.11% for all columns. &lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 06:18:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-27T06:18:09Z</dc:date>
    <item>
      <title>Pivot Table percentages based on second dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-percentages-based-on-second-dimension/m-p/768931#M273094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a pivot table with two dimensions. The second dimension is placed horizontally. My expression is as follows:&lt;/P&gt;&lt;P&gt;=IF((Heading3) = 1,'',&lt;/P&gt;&lt;P&gt;IF(Divide3=1,&lt;/P&gt;&lt;P&gt;num(Sum({$&amp;lt;Description3={'Food Cost'}&amp;gt;}Total MonthlyActivity*Multiplier3)&lt;/P&gt;&lt;P&gt;/Sum({$&amp;lt;Description3={'Food'}&amp;gt;}Total MonthlyActivity*Multiplier3),'#,##0.00%;(#,##0.00)%')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;IF(Divide3=2,&lt;/P&gt;&lt;P&gt;num(Sum({$&amp;lt;Description3={'Liquor Cost'}&amp;gt;}Total MonthlyActivity*Multiplier3)&lt;/P&gt;&lt;P&gt;/Sum({$&amp;lt;Description3={'Liquor'}&amp;gt;}Total MonthlyActivity*Multiplier3),'#,##0.00%;(#,##0.00)%')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;IF(Divide3=3,&lt;/P&gt;&lt;P&gt;num(Sum({$&amp;lt;Description3={'Wages'}&amp;gt;}Total MonthlyActivity*Multiplier3)&lt;/P&gt;&lt;P&gt;/Sum({$&amp;lt;Description3={'Total Income'}&amp;gt;}Total MonthlyActivity*Multiplier3),'#,##0.00%;(#,##0.00)%')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;IF(Divide3=4,&lt;/P&gt;&lt;P&gt;num(Sum({$&amp;lt;Description3={'Gross Profit'}&amp;gt;}Total MonthlyActivity*Multiplier3)&lt;/P&gt;&lt;P&gt;/Sum({$&amp;lt;Description3={'Total Income'}&amp;gt;}Total MonthlyActivity*Multiplier3),'#,##0.00%;(#,##0.00)%')&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;num((sum(MonthlyActivity)*Multiplier3)/1000,'#,##0;(#,##0)'))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use TOTAL to establish correct % in the report layout. See attached images. The single dimension report works OK. (see attached) My issue is when I attempt with second dimension the % shown are for the total values than what is for the second dimension value which is placed as a column. How can I get around to achieve the correct percentages by column. i.e. (Refer Second Dimension Image) Food Cost/Income on first column should be 22/58 = 37.9% rather than showing 33.11% for all columns. &lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 06:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-percentages-based-on-second-dimension/m-p/768931#M273094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-27T06:18:09Z</dc:date>
    </item>
  </channel>
</rss>

