<?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: How to calc % within the Group in a Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020513#M345288</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(Aggr(If((Rank(Count({&amp;lt;fieldA = {'1'}&amp;gt;} ID))) &amp;lt;= 5, Count({&amp;lt;FieldA = {1}&amp;gt;} ID)), Group, Vendor))/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;Group&amp;gt;&lt;/SPAN&gt; Aggr(If((Rank(Count({&amp;lt;fieldA = {'1'}&amp;gt;} ID))) &amp;lt;= 5, Count({&amp;lt;FieldA = {1}&amp;gt;} ID)), Group, Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 01:45:14 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-18T01:45:14Z</dc:date>
    <item>
      <title>How to calc % within the Group in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020512#M345287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="% within Group.PNG" class="jive-image image-1" src="/legacyfs/online/118486_% within Group.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I have a Pivot table above: 2nd Expression "%" is where I need to get correct values. This colm sud give me Exp1 for ea Vendor divided by total of all vendors within ea Group. So "%" value for Vendor 1 sud have been = 13/29 ~ 45%. How do I get that?&lt;/P&gt;&lt;P&gt;In general I am trying to pull Top 5 vendor data within Group.&lt;/P&gt;&lt;P&gt;For Exp1 I am using sum(aggr(if((rank(count({ &amp;lt; fieldA = {'1'}&amp;gt;} ID))) &amp;lt;=5,count({&amp;lt; FieldA = {1}&amp;gt;} ID)),Group, Vendor))&lt;/P&gt;&lt;P&gt;For % I am using Exp1/count( TOTAL &amp;lt;Group&amp;gt;{&amp;lt; FieldA = {1}&amp;gt;} ID) but (this one is not working)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 01:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020512#M345287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-18T01:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to calc % within the Group in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020513#M345288</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(Aggr(If((Rank(Count({&amp;lt;fieldA = {'1'}&amp;gt;} ID))) &amp;lt;= 5, Count({&amp;lt;FieldA = {1}&amp;gt;} ID)), Group, Vendor))/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;Group&amp;gt;&lt;/SPAN&gt; Aggr(If((Rank(Count({&amp;lt;fieldA = {'1'}&amp;gt;} ID))) &amp;lt;= 5, Count({&amp;lt;FieldA = {1}&amp;gt;} ID)), Group, Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 01:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020513#M345288</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-18T01:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to calc % within the Group in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020514#M345289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats correct! sunny. &lt;/P&gt;&lt;P&gt;Taking that one more step ahead; If I want the denominator part of the % to be all Vendors within the Group, not just top 5, what wud the Expression be then?&lt;/P&gt;&lt;P&gt;For Eg. Group A has 6 vendors, with total count of 29+1 equal to 30. and I want the result to be 13/30, 4/30, and so on..&lt;/P&gt;&lt;P&gt;how it sud be handled?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 02:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020514#M345289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-18T02:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calc % within the Group in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020515#M345290</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(Aggr(If((Rank(Count({&amp;lt;fieldA = {'1'}&amp;gt;} ID))) &amp;lt;= 5, Count({&amp;lt;FieldA = {1}&amp;gt;} ID)), Group, Vendor))/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;TOTAL &amp;lt;Group&amp;gt;&lt;/SPAN&gt; Aggr(Count({&amp;lt;FieldA = {1}&amp;gt;} ID), Group, Vendor))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 02:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020515#M345290</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-18T02:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calc % within the Group in a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020516#M345291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 02:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calc-within-the-Group-in-a-Pivot-Table/m-p/1020516#M345291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-18T02:22:22Z</dc:date>
    </item>
  </channel>
</rss>

