<?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 Subtotals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422727#M157514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnks the first expression stated by you has worked ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gysbert, Can u throw some light on the dimensionality()&amp;nbsp; function, i didnt understnd the functionality of this function, hw it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 07:15:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-30T07:15:38Z</dc:date>
    <item>
      <title>Pivot Subtotals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422722#M157509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a normal pivot chart, the values are correct but the subtotals of the percentages are causing problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the O/P got,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 640px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;Status&lt;/TD&gt;&lt;TD class="xl67" colspan="2" width="128"&gt;Compliance&lt;/TD&gt;&lt;TD class="xl67" colspan="2" width="128"&gt;NA&lt;/TD&gt;&lt;TD class="xl67" colspan="2" width="128"&gt;NonCompliance&lt;/TD&gt;&lt;TD class="xl67" colspan="2" style="border-right: black 1pt solid;" width="128"&gt;Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20"&gt;Process&lt;/TD&gt;&lt;TD class="xl70"&gt;Question&lt;/TD&gt;&lt;TD&gt;%&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;TD&gt;%&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;TD&gt;%&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;TD class="xl70"&gt;%&lt;/TD&gt;&lt;TD class="xl71"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="20"&gt;Fixing&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;82&lt;/TD&gt;&lt;TD align="right"&gt;226&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;18&lt;/TD&gt;&lt;TD align="right"&gt;49&lt;/TD&gt;&lt;TD align="right" class="xl70"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;275&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="20"&gt; &lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;87&lt;/TD&gt;&lt;TD align="right"&gt;240&lt;/TD&gt;&lt;TD align="right"&gt;13&lt;/TD&gt;&lt;TD align="right"&gt;35&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;275&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="20"&gt; &lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;TD align="right"&gt;97&lt;/TD&gt;&lt;TD align="right"&gt;266&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right" class="xl70"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl71"&gt;275&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" height="21"&gt; &lt;/TD&gt;&lt;TD class="xl74"&gt;Total&lt;/TD&gt;&lt;TD align="right" class="xl74"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl74"&gt;475&lt;/TD&gt;&lt;TD align="right" class="xl74"&gt;&lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl74"&gt;301&lt;/TD&gt;&lt;TD align="right" class="xl74"&gt;&lt;SPAN style="color: #ff0000;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl74"&gt;49&lt;/TD&gt;&lt;TD align="right" class="xl74"&gt;&lt;SPAN style="color: #ff0000;"&gt;6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl75"&gt;825&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression Used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; % = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Compliance_Report.FILE_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Compliance_Report.QUESTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Compliance_Report.FILE_NO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Compliance_Report.FILE_NO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have marked the subtotals &lt;STRONG&gt;Question &lt;/STRONG&gt;and &lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in % compliance total, shld get&lt;STRONG&gt; 57% &lt;/STRONG&gt;which is the average of the above 3 %s&lt;/P&gt;&lt;P&gt;in % NA total, shld get&lt;STRONG&gt; 45% &lt;/STRONG&gt;which is the average of the above 3 %s&lt;/P&gt;&lt;P&gt;in % Noncompliance total, shld get&lt;STRONG&gt; 6% &lt;/STRONG&gt;which is the average of the above 3 %s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can pls anybody explain wht wrong i did and hw to rectify the issue, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 05:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422722#M157509</guid>
      <dc:creator />
      <dc:date>2013-05-30T05:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Subtotals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422723#M157510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried to put this condition in sum()&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Compliance_Report.FILE_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Compliance_Report.QUESTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Compliance_Report.FILE_NO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Compliance_Report.FILE_NO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 05:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422723#M157510</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-30T05:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Subtotals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422724#M157511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want an average of relative counts. That's not what you specified. You only told QV to calculate the counts. Try using the aggr function to aggregate and aggregation, i.e. average a count over N dimensions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(Count(Compliance_Report.FILE_NO)/Count(total&amp;lt;Compliance_Report.QUESTION&amp;gt; Compliance_Report.FILE_NO), Compliance_Report.PROCESS, Compliance_Report.QUESTION)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compliance_Report.PROCESS is a guess on my part. Replace that with the actual dimension name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 05:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422724#M157511</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-30T05:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Subtotals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422725#M157512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Gysbert, i tried ur exp&lt;/P&gt;&lt;P&gt;but nt getting the desired output, many percentages are missed and those got are showing 100%.&lt;/P&gt;&lt;P&gt;Subtotals are correct but the % for each qtn is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the % to be w.r.t each qtns and then the subtotals to be showing avg of the % gt collectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 06:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422725#M157512</guid>
      <dc:creator />
      <dc:date>2013-05-30T06:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Subtotals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422726#M157513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, try using the dimensionality function. First add an expression with only &lt;EM&gt;dimensionality()&lt;/EM&gt; so you can see what level the subtotals get. Then create an if statement using the dimensionality function to use the right expression for the right level:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(dimensionality() = 2 ,&lt;EM&gt; count_expression_here&lt;/EM&gt;, &lt;EM&gt;avg_aggr_expression_here&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change dimensionality() = 2 to whatever it needs to be for your chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 06:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422726#M157513</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-30T06:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Subtotals</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422727#M157514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnks the first expression stated by you has worked ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gysbert, Can u throw some light on the dimensionality()&amp;nbsp; function, i didnt understnd the functionality of this function, hw it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 07:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Subtotals/m-p/422727#M157514</guid>
      <dc:creator />
      <dc:date>2013-05-30T07:15:38Z</dc:date>
    </item>
  </channel>
</rss>

