<?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 percentage calculation not working with column headers and filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-percentage-calculation-not-working-with-column/m-p/2040642#M1222699</link>
    <description>&lt;P&gt;I have a pivot table where I'm getting the count of each "Failure" category.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;=Count(Failure)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I can calculate the percentage per category if I just have Wk" as 'per week' column headers.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;=Num(Count(Failure)/Count(Total&amp;lt;Wk&amp;gt;(Failure)),'##0.0%')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahmetkara_0-1677028255412.png" style="width: 515px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101058i4FFA70A4D5919D17/image-dimensions/515x209?v=v2" width="515" height="209" role="button" title="ahmetkara_0-1677028255412.png" alt="ahmetkara_0-1677028255412.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I can also calculate the percentage per category if I filter the "failures" per another column "AM".&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;=Num(Count( { &amp;lt;AM={AM84}&amp;gt; } Failure) / Count( TOTAL {&amp;lt; AM={AM84} &amp;gt;} Failure),'##0.0%')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahmetkara_1-1677028307299.png" style="width: 293px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101059iE02BD6B908417104/image-dimensions/293x274?v=v2" width="293" height="274" role="button" title="ahmetkara_1-1677028307299.png" alt="ahmetkara_1-1677028307299.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, whenever I try to do a pivot table combining both the "Wk" weekly column headers and the "AM84" filter, I cannot seem to get the percentage calculation to work. I have been trying to tweak the following with no luck:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=Num(Count( { &amp;lt;AM={AM84}&amp;gt; } Failure) / Count( TOTAL {&amp;lt; {Wk} &amp;gt; , &amp;lt; AM={AM84} &amp;gt;} Failure),'##0.0%')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahmetkara_2-1677028491748.png" style="width: 561px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101060iB09068632B7B24FE/image-dimensions/561x178?v=v2" width="561" height="178" role="button" title="ahmetkara_2-1677028491748.png" alt="ahmetkara_2-1677028491748.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 01:15:36 GMT</pubDate>
    <dc:creator>ahmetkara</dc:creator>
    <dc:date>2023-02-22T01:15:36Z</dc:date>
    <item>
      <title>Pivot Table percentage calculation not working with column headers and filter</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-percentage-calculation-not-working-with-column/m-p/2040642#M1222699</link>
      <description>&lt;P&gt;I have a pivot table where I'm getting the count of each "Failure" category.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;=Count(Failure)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I can calculate the percentage per category if I just have Wk" as 'per week' column headers.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;=Num(Count(Failure)/Count(Total&amp;lt;Wk&amp;gt;(Failure)),'##0.0%')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahmetkara_0-1677028255412.png" style="width: 515px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101058i4FFA70A4D5919D17/image-dimensions/515x209?v=v2" width="515" height="209" role="button" title="ahmetkara_0-1677028255412.png" alt="ahmetkara_0-1677028255412.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I can also calculate the percentage per category if I filter the "failures" per another column "AM".&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;=Num(Count( { &amp;lt;AM={AM84}&amp;gt; } Failure) / Count( TOTAL {&amp;lt; AM={AM84} &amp;gt;} Failure),'##0.0%')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahmetkara_1-1677028307299.png" style="width: 293px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101059iE02BD6B908417104/image-dimensions/293x274?v=v2" width="293" height="274" role="button" title="ahmetkara_1-1677028307299.png" alt="ahmetkara_1-1677028307299.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, whenever I try to do a pivot table combining both the "Wk" weekly column headers and the "AM84" filter, I cannot seem to get the percentage calculation to work. I have been trying to tweak the following with no luck:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=Num(Count( { &amp;lt;AM={AM84}&amp;gt; } Failure) / Count( TOTAL {&amp;lt; {Wk} &amp;gt; , &amp;lt; AM={AM84} &amp;gt;} Failure),'##0.0%')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahmetkara_2-1677028491748.png" style="width: 561px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/101060iB09068632B7B24FE/image-dimensions/561x178?v=v2" width="561" height="178" role="button" title="ahmetkara_2-1677028491748.png" alt="ahmetkara_2-1677028491748.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 01:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-percentage-calculation-not-working-with-column/m-p/2040642#M1222699</guid>
      <dc:creator>ahmetkara</dc:creator>
      <dc:date>2023-02-22T01:15:36Z</dc:date>
    </item>
  </channel>
</rss>

