<?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 Equivalent of RANK() OVER in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374165#M139261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response DV - you have a pretty clear understanding of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 90% of my dataset, the MAX(RATINGID) correctly returns the latest rating; however, for the other 10%, the MAX(RATINGID) does not represent the latest rating - so, to cover both cases, the MAX(RATINGDATE) should be used first, followed by the MAX(RATINGID) - below is the load script code I am currently using to define a rank within the dataset - the ability to return the MAX(RATINGDATE) followed by the MAX(RATINGID) within a query such as the one below would be ideal:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CFRATINGSRANK:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEFT JOIN (CF_RATINGS_SLICE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD 1 as CF_RNK,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(RATINGID) as RATINGID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RATINGTYPEDESCRIPTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT CF_RATINGS_SLICE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; BY ISSUERID,RATINGTYPEDESCRIPTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDER BY RATINGDATE desc,RATINGID desc; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the dataset that is returned for one of the issuers in question - in this case, the data is incorrect, because there are more recent ratings than 06/09/2010:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the data for the same ISSUERID within the Oracle database, showing that the latest ratings are actually dated '09/06/2011' - however, the RTNG_ID values for these ratings are lower than the RTNG_ID values for the ratings dated '09/06/2010', so this is why in QlikView, MAX(RATINGID) returns the ratings dated '09/06/2010':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle allows you to define a rank by partitioning the data by a series of fields, e.g.:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RANK() OVER (PARTITION BY grp_id ORDER BY ratingdate DESC, rtng_id DESC) rank1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the equivalent of the Oracle RANK() statement in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2012 10:03:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-15T10:03:25Z</dc:date>
    <item>
      <title>Equivalent of RANK() OVER in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374163#M139259</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 have a large dataset of ratings, and I need to rank the latest ratings - 90% of the dataset can be ranked by MAX(RATINGID), but 10% of the dataset has a more recent RATINGDATE, where the corresponding RATINGID is &lt;EM&gt;not&lt;/EM&gt; the MAX(RATINGID). For example, the latest ratings in the dataset below are the ones with a RATINGDATE of 06/09/2011 - however, the RATINGID for the ratings dated 06/09/2010 is greater, so this is what MAX(RATINGID) would return, which in this case, is incorrect - I want to rank the ratings dated 06/09/2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PL/SQL, this could be achieved with a statement like this, and I would like the equivalent for this in QlikView:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;RANK&lt;/SPAN&gt;&lt;SPAN style="color: red; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;OVER &lt;/SPAN&gt;&lt;SPAN style="color: red; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;STRONG&gt;PARTITION&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;STRONG&gt;BY&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Calibri, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;RTNG_TYP &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;STRONG&gt;ORDER&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;STRONG&gt;BY&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Calibri, sans-serif; font-size: 10pt;"&gt; RTNG&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;_DT &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;STRONG&gt;DESC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: red; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Calibri, sans-serif; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;RTNG_ID &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt; font-family: Calibri, sans-serif;"&gt;&lt;STRONG&gt;DESC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: red; font-family: Calibri, sans-serif; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently ranking the data like this, but in the case of the above dataset, this code returns the ratings for 06/09/2010, which is incorrect, although this code works for 90% of the entire dataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD 1 as CF_RNK,&lt;/P&gt;&lt;P&gt;max(RATINGID) as RATINGID,&lt;/P&gt;&lt;P&gt;RATINGTYPEDESCRIPTION&lt;/P&gt;&lt;P&gt;RESIDENT CF_RATINGS_SLICE&lt;/P&gt;&lt;P&gt;GROUP BY ISSUERID,RATINGTYPEDESCRIPTION;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I achieve a solution for both scenarios in QlikView? I need a way to determine which is the correct RATINGID to rank - the MAX(RATINGID) or the RATINGID with the MAX(RATINGDATE)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also need to retain the grouping by ISSUERID and RATINGTYPEDESCRIPTION, so a solution that allows me to retain the use of GROUP BY would be ideal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 11:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374163#M139259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-30T11:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent of RANK() OVER in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374164#M139260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Hi VB,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;I'm not sure if I have clearly understood. Let me make sure...&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;You wanted to Rank by RATINGID but you wanted to first rank where RATINGDATE = 06/09/2011&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;And then you wanted to Rank based on RATINGID, I'm assuming all this in Desc order. Is this right? Also, please can you post some sample data in QVW file or excel file showing the output rank numbers? It will be easy to work with something where we know the output.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;DV&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 10:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374164#M139260</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-01T10:30:02Z</dc:date>
    </item>
    <item>
      <title>Equivalent of RANK() OVER in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374165#M139261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response DV - you have a pretty clear understanding of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 90% of my dataset, the MAX(RATINGID) correctly returns the latest rating; however, for the other 10%, the MAX(RATINGID) does not represent the latest rating - so, to cover both cases, the MAX(RATINGDATE) should be used first, followed by the MAX(RATINGID) - below is the load script code I am currently using to define a rank within the dataset - the ability to return the MAX(RATINGDATE) followed by the MAX(RATINGID) within a query such as the one below would be ideal:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CFRATINGSRANK:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEFT JOIN (CF_RATINGS_SLICE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD 1 as CF_RNK,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(RATINGID) as RATINGID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RATINGTYPEDESCRIPTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESIDENT CF_RATINGS_SLICE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; BY ISSUERID,RATINGTYPEDESCRIPTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDER BY RATINGDATE desc,RATINGID desc; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the dataset that is returned for one of the issuers in question - in this case, the data is incorrect, because there are more recent ratings than 06/09/2010:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the data for the same ISSUERID within the Oracle database, showing that the latest ratings are actually dated '09/06/2011' - however, the RTNG_ID values for these ratings are lower than the RTNG_ID values for the ratings dated '09/06/2010', so this is why in QlikView, MAX(RATINGID) returns the ratings dated '09/06/2010':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle allows you to define a rank by partitioning the data by a series of fields, e.g.:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RANK() OVER (PARTITION BY grp_id ORDER BY ratingdate DESC, rtng_id DESC) rank1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the equivalent of the Oracle RANK() statement in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 10:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374165#M139261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T10:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent of RANK() OVER in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374166#M139262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;If(Previous(Group) = Group, Peek('Rank') +1, 1) As Rank&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you need to sort the value by the fields first. Works with more than 1 field in the window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;1 As Rank&lt;/P&gt;&lt;P&gt;inline&lt;/P&gt;&lt;P&gt;[Id, Group, Date&lt;/P&gt;&lt;P&gt;1, A, 01/01/2010&lt;/P&gt;&lt;P&gt;2, A, 02/01/2010&lt;/P&gt;&lt;P&gt;3, A, 04/01/2010&lt;/P&gt;&lt;P&gt;4, A, 10/01/2010&lt;/P&gt;&lt;P&gt;5, B, 01/01/2009&lt;/P&gt;&lt;P&gt;6, B, 01/02/2010&lt;/P&gt;&lt;P&gt;7, B, 01/03/2011&lt;/P&gt;&lt;P&gt;8, C, 01/01/2010&lt;/P&gt;&lt;P&gt;9, C, 01/02/2010&lt;/P&gt;&lt;P&gt;10, D, 06/06/2010&lt;/P&gt;&lt;P&gt;11, D, 02/02/2010&lt;/P&gt;&lt;P&gt;12, D, 05/05/2010&lt;/P&gt;&lt;P&gt;13, D, 03/03/2010&lt;/P&gt;&lt;P&gt;14, D, 04/04/2010];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;Noconcatenate Load&lt;/P&gt;&lt;P&gt;Id,&lt;/P&gt;&lt;P&gt;Group,&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;If(Previous(Group) = Group, Peek('Rank') +1, 1) As Rank&lt;/P&gt;&lt;P&gt;resident Data&lt;/P&gt;&lt;P&gt;order by Group, Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 11:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374166#M139262</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-05-15T11:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent of RANK() OVER in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374167#M139263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the neat solution . I tried this &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CLASSTEST:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Class , Subject , StudentID, Marks &lt;BR /&gt;1 , 1, 1, 90&lt;BR /&gt;1 , 1, 2, 80 &lt;BR /&gt;1 , 1 , 3, 85 &lt;BR /&gt;1, 2 , 1 , 77&lt;BR /&gt;1, 2, 2 , 88&lt;BR /&gt;1, 2, 3 , 66&lt;BR /&gt;1 , 3 , 1 , 55&lt;BR /&gt;1 , 3 , 2 , 77&lt;BR /&gt;1 , 3 , 3 , 88&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TEMPCLASSTESTSORTED:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;* , 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Subrank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; CLASSTEST&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ORDER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Marks&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;desc&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;drop &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;table&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;CLASSTEST; &lt;BR /&gt;&lt;BR /&gt;FACTCLASSTEST:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;StudentID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Marks&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Previous&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Subrank')+1 , 1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;subjectRank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; TEMPCLASSTESTSORTED;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;drop table TEMPCLASSTESTSORTED;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;This only brings up Rank 1 and subsequent ones fail ? Any ideas ? &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 15:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374167#M139263</guid>
      <dc:creator>vishkr</dc:creator>
      <dc:date>2013-05-15T15:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent of RANK() OVER in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374168#M139264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your sentence it is not correct.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Previous&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('&lt;SPAN style="text-decoration: line-through;"&gt;Subrank &lt;/SPAN&gt; &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;subjectRank&lt;/SPAN&gt;')+1 , 1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;subjectRank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Kind regards!&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 15:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Equivalent-of-RANK-OVER-in-QlikView/m-p/374168#M139264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T15:51:29Z</dc:date>
    </item>
  </channel>
</rss>

