<?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: Determining Rank() within Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053244#M353310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the Straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;1) Rank&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; Rank(Count({&amp;lt;Winner={Yes}&amp;gt;}Team),4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2) # wins&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Winner={Yes}&amp;gt;}Team)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above straight table you will be able to know easily that which team won most of the games.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 11:38:04 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-03-11T11:38:04Z</dc:date>
    <item>
      <title>Determining Rank() within Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053240#M353306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to form a set expression to determine: Who won most of the games?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the Dataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;Category, Team, Winner, Points&lt;/P&gt;&lt;P&gt;A, Golden Eagle, Yes, 701&lt;/P&gt;&lt;P&gt;A, Pink Panthers, No, 512&lt;/P&gt;&lt;P&gt;A, Somers City, No, 501&lt;/P&gt;&lt;P&gt;A, Warriors XI, No, 432&lt;/P&gt;&lt;P&gt;B, Somers City, Yes, 654&lt;/P&gt;&lt;P&gt;B, Golden Eagle, No, 610&lt;/P&gt;&lt;P&gt;B, Warriors XI, No, 602&lt;/P&gt;&lt;P&gt;B, Somers City, No, 589&lt;/P&gt;&lt;P&gt;C, Golden Eagles, Yes, 332&lt;/P&gt;&lt;P&gt;C, Warriors XI, No, 312&lt;/P&gt;&lt;P&gt;C, Somers City, No, 290&lt;/P&gt;&lt;P&gt;C, Pink Panthers, No, 228&lt;/P&gt;&lt;P&gt;D, Somers City, Yes, 451&lt;/P&gt;&lt;P&gt;D, Pink Panthers, No, 432&lt;/P&gt;&lt;P&gt;D, Warriors XI, No, 412&lt;/P&gt;&lt;P&gt;D, Golden Eagles, No, 409&lt;/P&gt;&lt;P&gt;E, Golden Eagles, Yes, 660&lt;/P&gt;&lt;P&gt;E, Pink Panthers, No, 630&lt;/P&gt;&lt;P&gt;E, Somers City, No, 601&lt;/P&gt;&lt;P&gt;E, Warriors XI, No, 523&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Winner = 'Yes', the team wins in that category. I need to find which team won most of the games (irrespective of category). For example, from my dataset, one can deduce "Golden Eagle" won 3 games. I am unable to form an expression for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show who won most of the matches in Caption of text box and number of wins in text box expression. I tried below but it did not help:&lt;/P&gt;&lt;P&gt;aggr(rank(count({&amp;lt;Winner={"Yes"}&amp;gt;}Team),4,2),Team)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 10:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053240#M353306</guid>
      <dc:creator />
      <dc:date>2016-03-11T10:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Rank() within Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053241#M353307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue(Team, -Aggr(Rank(Count({&amp;lt;Winner={"Yes"}&amp;gt;}Team),4,2),Team))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117701_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 10:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053241#M353307</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-11T10:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Rank() within Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053242#M353308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny! would you please answer the second part of my question: how to find the count number of&amp;nbsp; wins for Golden Eagle tam?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 11:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053242#M353308</guid>
      <dc:creator />
      <dc:date>2016-03-11T11:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Rank() within Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053243#M353309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My previous expression for team was incorrect. Try this for team:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue({&amp;lt;Winner = {Yes}&amp;gt;}Team, -Aggr(Count({&amp;lt;Winner={Yes}&amp;gt;}Team),Team))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this for count&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Team = {'$(=FirstSortedValue({&amp;lt;Winner = {Yes}&amp;gt;}Team, -Aggr(Count({&amp;lt;Winner={Yes}&amp;gt;}Team),Team)))'}, Winner={"Yes"}&amp;gt;} Points)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 11:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053243#M353309</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-11T11:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Rank() within Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053244#M353310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the Straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;1) Rank&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; Rank(Count({&amp;lt;Winner={Yes}&amp;gt;}Team),4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2) # wins&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Winner={Yes}&amp;gt;}Team)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above straight table you will be able to know easily that which team won most of the games.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 11:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053244#M353310</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-11T11:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Rank() within Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053245#M353311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kush, my requirement was restricted to represent it in a text box ..Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 11:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determining-Rank-within-Set-analysis/m-p/1053245#M353311</guid>
      <dc:creator />
      <dc:date>2016-03-11T11:58:40Z</dc:date>
    </item>
  </channel>
</rss>

