<?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: Rank Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488835#M1128143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try =FirstSortedValue(Sportsman,-aggr(sum([Total Number of Points Scored]),Sportsman)) for the name of the sportsman with the highest score. For the second highest use =FirstSortedValue(Sportsman,-aggr(sum([Total Number of Points Scored]),Sportsman),2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2013 15:31:30 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-12-16T15:31:30Z</dc:date>
    <item>
      <title>Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488834#M1128142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on selecting the highest performer in a certain type of sport. So, I need my text object to return a name for the highest number of scores, and currently the expression is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= only({&amp;lt;Sportsman={"=rank(sum([Total Number of Points Scored], Sportsman)=2"}&amp;gt;} Sportsman),however it doesn't work and only returns a '-'. Can anyone help with this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 15:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488834#M1128142</guid>
      <dc:creator />
      <dc:date>2013-12-16T15:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488835#M1128143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try =FirstSortedValue(Sportsman,-aggr(sum([Total Number of Points Scored]),Sportsman)) for the name of the sportsman with the highest score. For the second highest use =FirstSortedValue(Sportsman,-aggr(sum([Total Number of Points Scored]),Sportsman),2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 15:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488835#M1128143</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-16T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488836#M1128144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a closing bracket ) missing in your advances search expression and I think you should remove the second argument from the rank() function:&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;"&gt;= only({&amp;lt;Sportsman={"=rank(sum([Total Number of Points Scored]))=2"}&amp;gt;} Sportsman)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 15:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488836#M1128144</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-16T15:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488837#M1128145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Gysbert, that worked for the highest one. What about the lowest? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 16:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488837#M1128145</guid>
      <dc:creator />
      <dc:date>2013-12-16T16:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488838#M1128146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove the - character in front of the aggr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 16:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488838#M1128146</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-16T16:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488839#M1128147</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>Mon, 16 Dec 2013 16:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488839#M1128147</guid>
      <dc:creator />
      <dc:date>2013-12-16T16:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488840#M1128148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if I want to list all sportsmen that have the same highest value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 09:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488840#M1128148</guid>
      <dc:creator />
      <dc:date>2013-12-17T09:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488841#M1128149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case try with concat() function like:&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;"&gt;= Concat({&amp;lt;Sportsman={"=rank(sum([Total Number of Points Scored]))=2"}&amp;gt;} Sportsman, ',')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 09:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488841#M1128149</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-17T09:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488842#M1128150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for that. and the case for listing all sportsmen that have the same lowest value? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 09:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488842#M1128150</guid>
      <dc:creator />
      <dc:date>2013-12-17T09:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488843#M1128151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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;"&gt;= Concat({&amp;lt;Sportsman={"=rank( - sum([Total Number of Points Scored]))=&lt;STRONG&gt;1&lt;/STRONG&gt;"}&amp;gt;} Sportsman, ',')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 10:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488843#M1128151</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-17T10:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488844#M1128152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that doesn't seem quite to work. So, with the formula provided for the first one, if there is a 2, then it doesn't give the highest, but lists all second highest, so I changed it to 1 and it works., For the lowest one- 2,3 etc don't work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 11:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488844#M1128152</guid>
      <dc:creator />
      <dc:date>2013-12-17T11:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488845#M1128153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you notice the '-'symbol I used before sum() function for lowest rank? It should work. Otherwise try to share a sample app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 11:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488845#M1128153</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-17T11:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488846#M1128155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did notice the symbol, however, I can't share the app. It seems to return second highest values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 11:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/488846#M1128155</guid>
      <dc:creator />
      <dc:date>2013-12-17T11:12:04Z</dc:date>
    </item>
  </channel>
</rss>

