<?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/537628#M200944</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;See attached QVW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 03:19:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-29T03:19:40Z</dc:date>
    <item>
      <title>Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537620#M200936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a following table:&lt;/P&gt;&lt;P&gt;ID,Subject,Marks&lt;/P&gt;&lt;P&gt;1,English,20&lt;/P&gt;&lt;P&gt;1,English,25&lt;/P&gt;&lt;P&gt;1,Hindi,30&lt;/P&gt;&lt;P&gt;1,Hindi,35&lt;/P&gt;&lt;P&gt;2,English,50&lt;/P&gt;&lt;P&gt;2,English,35&lt;/P&gt;&lt;P&gt;2,Hindi,60&lt;/P&gt;&lt;P&gt;2,Hindi,55&lt;/P&gt;&lt;P&gt;3,English,45&lt;/P&gt;&lt;P&gt;3,English,50&lt;/P&gt;&lt;P&gt;3,Hindi,36&lt;/P&gt;&lt;P&gt;3,Hindi,46&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate rank of Average Marks for ID 1/2/3 (to be given via user input) for each of the subjects. That is, my qvw file will have following straight table:&lt;/P&gt;&lt;P&gt;(For ID 1)&lt;/P&gt;&lt;P&gt;Subject - Rank&lt;/P&gt;&lt;P&gt;English - 3&lt;/P&gt;&lt;P&gt;Hindi - 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a qvw file - I need the correct expression in "To be Evaluated" table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537620#M200936</guid>
      <dc:creator />
      <dc:date>2013-10-28T17:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537621#M200937</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;You don't need to use rank function for this. Simple expression will list.&lt;/P&gt;&lt;P&gt;see the example attached.&lt;/P&gt;&lt;P&gt;Is this good for you ?&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537621#M200937</guid>
      <dc:creator />
      <dc:date>2013-10-28T17:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537622#M200938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to display the rank of the Average Marks for the ID selected in each of the subject. Currently the solution shows only Average Marks for the selected ID in each of the subject.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537622#M200938</guid>
      <dc:creator />
      <dc:date>2013-10-28T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537623#M200939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi BAlaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see.. you can calculate ranks in the script. See attached application.&lt;/P&gt;&lt;P&gt;Is this good?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically after loading &lt;STRONG&gt;Grades &lt;/STRONG&gt;following script will calculate ranks:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&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;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Avg&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;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Avg_Mark&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; Grades&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Group&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;ID&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;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Grades)&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&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;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;isNull&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;('Rank_No')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&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;('Subject')&amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Rank_No')+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;Rank_No&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; Temp_Rank&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;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Avg_Mark&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;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Temp_Rank; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537623#M200939</guid>
      <dc:creator />
      <dc:date>2013-10-28T18:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537624#M200940</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 cannot do this in script - the reason is that my original file has many more dimensions - and I want the filters applied to be reflected in the calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537624#M200940</guid>
      <dc:creator />
      <dc:date>2013-10-28T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537625#M200941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537625#M200941</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-10-28T18:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537626#M200942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can still keep your other dimensions and filters they will all apply.&lt;/P&gt;&lt;P&gt;if you just link calculated Rank_No to your fact by Subject and ID that should be fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537626#M200942</guid>
      <dc:creator />
      <dc:date>2013-10-28T18:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537627#M200943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jpapador,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not looking for simple average - as i mentioned, I am looking for rank of an ID in a subject based on average marks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 02:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537627#M200943</guid>
      <dc:creator />
      <dc:date>2013-10-29T02:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537628#M200944</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;See attached QVW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 03:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537628#M200944</guid>
      <dc:creator />
      <dc:date>2013-10-29T03:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537629#M200945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ranks displayed in the qvw file you attached are not correct. - For e.g., ID should have a rank of 3 in English, but I see some other value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 03:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537629#M200945</guid>
      <dc:creator />
      <dc:date>2013-10-29T03:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537630#M200946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached application. It displays based on variable or based on field selection on ID.&lt;/P&gt;&lt;P&gt;Two options yields the same result and gives your desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you need an expression like below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;(A&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;ggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;( {$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; = &amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Marks&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) ), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Ersen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 08:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/537630#M200946</guid>
      <dc:creator />
      <dc:date>2013-12-03T08:15:44Z</dc:date>
    </item>
  </channel>
</rss>

