<?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 count Rows for Top 3 vendors in Set Analysis Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076979#M359233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That exp is calculating how many vendors are in top 3 category for each group. For eg some times there can be more than 3 vendors in top 3 due to a tie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vendor A - total counts: 4&lt;/P&gt;&lt;P&gt;Vendor B - total counts: 4&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vendor C - total counts: 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vendor D - total counts: 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;so in this case, we have 4 "Top 3" vendors. this is what that current code is giving. I understand it is not easy with out a sample. but my qvw is huge. let me see if I can scramble it. I dont want to post the actual app for security reasons&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2016 16:08:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-09T16:08:22Z</dc:date>
    <item>
      <title>How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076969#M359223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Top 3 Vendor.PNG" class="jive-image image-1" src="/legacyfs/online/113938_Top 3 Vendor.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count no of rows (which I think is the same as counting ID - as its counting the number of instances where Level = '1', thats a req.)&lt;/P&gt;&lt;P&gt;for Top 3 vendors by Group. So the Expn should bring total count for top 3 vendors. For Eg.&lt;/P&gt;&lt;P&gt;Toal for XYZ will be (5+3+2) [5: Vendor A has Level 1 5 times, Vendor B has level 1 3 times, and Vendor C has level 1 3 times. These are the top 3 vendors for Group XYZ]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly Total for ABC should be 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a straight table with dimension, Group only. The Expn sud calculate my above Requirements. &lt;/P&gt;&lt;P&gt;I am not looking for CALCULATED DIMENSION SOLN.&amp;nbsp; If you can&amp;nbsp; help that wpuld be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 22:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076969#M359223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T22:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076970#M359224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;* Vendor C has Level '1', 2 times&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 22:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076970#M359224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T22:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076971#M359225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Count({&amp;lt;Level = {1}, Vendor = {"=Rank(Count({&amp;lt;Level = {1}&amp;gt;}ID)&amp;lt;=3"}&amp;gt;} ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 22:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076971#M359225</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T22:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076972#M359226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again!!. Your code was perfect except that it was missing one parenthesis after ID,&lt;/P&gt;&lt;P&gt;so when I added one more, it worked: here is the successful code : &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;= Count({&amp;lt;Level = {1}, Vendor = {"=Rank(Count({&amp;lt;Level = {1}&amp;gt;}ID))&amp;lt;=3"}&amp;gt;} ID)&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;because you have used two functions Rank and Count, you probably forgot to close one more parenthesis, which is no big deal at all. I appreciate your help. &lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Many Thanks,&lt;/SPAN&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;D&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 23:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076972#M359226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-08T23:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076973#M359227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikDash, please answer your question as answered if you get the answer. It will useful to others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 02:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076973#M359227</guid>
      <dc:creator />
      <dc:date>2016-02-09T02:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076974#M359228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dathu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is not working 100%, I will mark it once It is all set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;There is a small Problem with the code. In the actual app, I have about 30 Expns and 1 dimension. The Expn we are working on is 1 out of 30 in the straight table. The Expn does not show the correct value, unless I select a field value from List Box 'Group' which is the dimension on the straight table. For Example unless I select value 'XYZ' from the Group list box, its giving me a value of less than 5. But Once I select a value from the list box, it displays correct result for corresponding Group. I&amp;nbsp; do not know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 03:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076974#M359228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T03:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076975#M359229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Count({&amp;lt;Level = {1}, Vendor = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Aggr(Rank(Count({&amp;lt;Level={1}&amp;gt;}ID)),Group) &amp;lt;= 3&lt;/SPAN&gt;"}&amp;gt;} ID) }&amp;gt; ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Can you please share qvw with sample data.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 03:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076975#M359229</guid>
      <dc:creator />
      <dc:date>2016-02-09T03:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076976#M359230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either create a composite key made out of Group and Vendor in your data model,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vendor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber(Group &amp;amp; Vendor) as GroupVendor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use&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;= Count({&amp;lt;Level = {1}, GroupVendor = {"=Aggr( Rank(Count({&amp;lt;Level = {1}&amp;gt;} ID))&amp;lt;=3,Group,Vendor)"}&amp;gt;} ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or without changing your data model, use an expression like&lt;/P&gt;&lt;P&gt;=Count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;Level = {1} Aggr( If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Rank(Count({&amp;lt;Level = {1}&amp;gt;} ID))&amp;lt;=3, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count({&amp;lt;Level = {1}&amp;gt;} ID)), Group,Vendor))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 11:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076976#M359230</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-09T11:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076977#M359231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an error saying "Error in Set Modifier Expression" for&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;=Count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;Level = {1} Aggr( If(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; Rank(Count({&amp;lt;Level = {1}&amp;gt;} ID))&amp;lt;=3, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Count({&amp;lt;Level = {1}&amp;gt;} ID)), Group,Vendor))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 15:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076977#M359231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076978#M359232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, sure, I missed the &amp;gt;} after the first set expression.&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: #3d3d3d; background-color: #f2f2f2;"&gt;=Count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;{&amp;lt;Level = {1} &lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt; Aggr( If(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; Rank(Count({&amp;lt;Level = {1}&amp;gt;} ID))&amp;lt;=3, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Level = {1}&amp;gt;} ID)), Group,Vendor))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's quite hard to code expressions only in the editor, without having a sample to work with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 15:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076978#M359232</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-09T15:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076979#M359233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That exp is calculating how many vendors are in top 3 category for each group. For eg some times there can be more than 3 vendors in top 3 due to a tie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vendor A - total counts: 4&lt;/P&gt;&lt;P&gt;Vendor B - total counts: 4&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vendor C - total counts: 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vendor D - total counts: 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;so in this case, we have 4 "Top 3" vendors. this is what that current code is giving. I understand it is not easy with out a sample. but my qvw is huge. let me see if I can scramble it. I dont want to post the actual app for security reasons&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 16:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076979#M359233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T16:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076980#M359234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look into the additional arguments of Rank() function on how to create an appropriate tie break, maybe like&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: #3d3d3d; background-color: #f2f2f2;"&gt;=Count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;{&amp;lt;Level = {1} &amp;gt;} Aggr( If(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; Rank(Count({&amp;lt;Level = {1}&amp;gt;} ID)&lt;STRONG&gt;,4&lt;/STRONG&gt;)&amp;lt;=3, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Level = {1}&amp;gt;} ID)), Group,Vendor))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 16:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076980#M359234</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-09T16:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076981#M359235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;, The correct answer is:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;{&amp;lt;Level = {1} &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;gt;}&lt;/STRONG&gt; Aggr( If(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; Rank(Count({&amp;lt;Level = {1}&amp;gt;} ID))&amp;lt;=3, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Level = {1}&amp;gt;} ID)), Group,Vendor))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;The only thing I changed was use &lt;STRONG&gt;SUM&lt;/STRONG&gt; instead of &lt;STRONG&gt;COUNT&lt;/STRONG&gt; in the front. The code you wrote on which I based this was:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=Count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;{&amp;lt;Level = {1} &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;gt;}&lt;/STRONG&gt; Aggr( If(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; Rank(Count({&amp;lt;Level = {1}&amp;gt;} ID))&amp;lt;=3, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Level = {1}&amp;gt;} ID)), Group,Vendor))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;Thanks again!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: inherit; font-weight: inherit;"&gt;D&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 04:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076981#M359235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T04:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to count Rows for Top 3 vendors in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076982#M359236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in all my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 04:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-Rows-for-Top-3-vendors-in-Set-Analysis-Expression/m-p/1076982#M359236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T04:49:40Z</dc:date>
    </item>
  </channel>
</rss>

