<?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: total in the pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060028#M927608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;M&lt;SPAN style="color: #575757;"&gt;ay be this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;STRONG style="color: #575757;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum(Aggr(&lt;/SPAN&gt;Count(distinct total [MA Exn Employee Name])&lt;SPAN style="color: #ff0000;"&gt;, YourChartDimension))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2016 18:44:49 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-23T18:44:49Z</dc:date>
    <item>
      <title>total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060027#M927607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;I have a total in pivot table( see attached) and I have some questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some duplication within this pivot table, however, Qlik is smart enough to delete the duplication. I want to keep it.&lt;/P&gt;&lt;P&gt;So if you add the sub total which is 26+725+1=752, but not the grand total 746.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus when I do the percentage, it is still give me non-dups. my percentage is more than 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expressions are&lt;/P&gt;&lt;P&gt;indiv w/ Exception: count(distinct [MA Exn Employee Name])&lt;/P&gt;&lt;P&gt;% of Total: count(distinct [MA Exn Employee Name])/&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;count(distinct total [MA Exn Employee Name])&amp;nbsp; (&lt;SPAN style="color: #000000;"&gt;the part in red should be 752&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060027#M927607</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060028#M927608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;M&lt;SPAN style="color: #575757;"&gt;ay be this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;STRONG style="color: #575757;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum(Aggr(&lt;/SPAN&gt;Count(distinct total [MA Exn Employee Name])&lt;SPAN style="color: #ff0000;"&gt;, YourChartDimension))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 18:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060028#M927608</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T18:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060029#M927609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the solution, but I am still getting 746&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119196_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 18:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060029#M927609</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-03-23T18:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060030#M927610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you add all the chart dimensions?&lt;/P&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060030#M927610</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T19:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060031#M927611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can understand it looks like your duplicates appear because some values are classified in more than 1 group (dimension). Could you in your script flag these lines with a 1 for each group it should be in (for each group a different column, a new dimension). After that you can add up the ones in a new column, which gives you the count of groups each line is in.&lt;/P&gt;&lt;P&gt;On the front-end you can use this multiplier in your calculation of the percentage (almost all lines are multiplied by 1, only the duplicates are multiplied by 2 or 3, etc).&lt;/P&gt;&lt;P&gt;This can help you with the correct result and it can be better for performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060031#M927611</guid>
      <dc:creator>jepeerik</dc:creator>
      <dc:date>2016-03-23T19:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060032#M927612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the following for the expression for the 3rd expression in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Count(distinct total [MA Exn Employee Name]), [MA Exn Classification],[MA Exn Classification ReMapping]))&lt;/P&gt;&lt;P&gt; I am attaching the sample in the original post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060032#M927612</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-03-23T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060033#M927613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry it took me a while to figure out how to attach.&lt;/P&gt;&lt;P&gt;It is there now.&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060033#M927613</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-03-23T19:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060034#M927614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL Aggr(Count(DISTINCT [MA Exn Employee Name]), [MA Exn Classification ReMapping]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060034#M927614</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060035#M927615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is right! How did the total's position changed the numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060035#M927615</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-03-23T19:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060036#M927616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was combination of moving the total as well as removing the 1st dimension from the Aggr() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060036#M927616</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T19:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060037#M927617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes,&amp;nbsp; I tried two &lt;SPAN style="font-size: 13.3333px;"&gt;dimensions before.&lt;/SPAN&gt; I tried one by one separately. As a matter of fact, I never used 2 dimensions in an aggr()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060037#M927617</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-03-23T19:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060038#M927618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the issue is related to DISTINCTiness needed for the sum is not at the lowest level, but at the Sub-Total level and that is why the Aggr() with two dimension did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL Aggr(Count(DISTINCT [MA Exn Employee Name]), [MA Exn Classification ReMapping]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The above gives the Sum of distinct count at the most lowest level (756 vs 752)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 19:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060038#M927618</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-23T19:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: total in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060039#M927619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that would be ideal.&lt;/P&gt;&lt;P&gt;However, the user wants to have the duplication and non-duplicated numbers.&lt;/P&gt;&lt;P&gt;Someone started this application before me and I am changing based on the original codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 20:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-the-pivot-table/m-p/1060039#M927619</guid>
      <dc:creator>alexpanjhc</dc:creator>
      <dc:date>2016-03-23T20:33:27Z</dc:date>
    </item>
  </channel>
</rss>

