<?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/718937#M1069933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rank function format is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;rank(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; ] expression [ , mode [, format ] ]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here, the second parameter &lt;SPAN style="font-style: italic;"&gt;mode&lt;/SPAN&gt; specifies the number representation of the function result.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;0 &lt;SPAN class="normal"&gt;(default)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;If all ranks within the sharing group fall on the low side of the middle value of the entire ranking, all rows get the lowest rank within the sharing group. &lt;BR /&gt;If all ranks within the sharing group fall on the high side of the middle value of the entire ranking, all rows get the highest rank within the sharing group. &lt;BR /&gt;If ranks within the sharing group span over the middle value of the entire ranking, all rows get the value corresponding to the average of the top and bottom ranking in the entire column segment.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;1&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on all rows.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;2&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Average rank on all rows.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;3&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Highest rank on all rows.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;4&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on first row, then incremented by one for each row.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the attached example to know the difference.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 07:19:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-21T07:19:32Z</dc:date>
    <item>
      <title>Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718935#M1069930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we want to get the Top 20 products , we will use following set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Product = {"=rank(sum(Sales), 4)&amp;lt;= 20"}&amp;gt;} Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what does dis 4 in {"=rank(sum(Sales), 4)&amp;lt;= 20"} signifies?? Please tell me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718935#M1069930</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-08-21T07:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718936#M1069932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the manual &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rank([ total ] expression [ , mode [, format ] ])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Evaluates expression, compares the result with the result of the other rows containing the current column segment&lt;/P&gt;&lt;P&gt;and returns the ranking of the current row within the segment. For bitmap charts, the current column&lt;/P&gt;&lt;P&gt;segment is defined as it appears in the chart's straight table equivalent (Actually all QlikView charts have a&lt;/P&gt;&lt;P&gt;straight table equivalent with the exception of the pivot table which has a more complex structure).&lt;/P&gt;&lt;P&gt;If the chart is one-dimensional or if the expression is preceded by the total qualifier, the current column segment&lt;/P&gt;&lt;P&gt;is always equal to the entire column. If the table or table equivalent has multiple vertical dimensions,&lt;/P&gt;&lt;P&gt;the current column segment will include only rows with the same values as the current row in all dimension&lt;/P&gt;&lt;P&gt;columns except for the column showing the last dimension in the inter field sort order.&lt;/P&gt;&lt;P&gt;The ranking is returned as a dual value, which in the case when each row has a unique ranking will be an&lt;/P&gt;&lt;P&gt;integer between 1 and the number of rows in the current column segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case where several rows share the same ranking, the text and number representation can be controlled&lt;/P&gt;&lt;P&gt;as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second parameter mode specifies the number representation of the function result.&lt;/P&gt;&lt;P&gt;mode&lt;/P&gt;&lt;P&gt;0 (default) If all ranks within the sharing group fall on the low side of the middle value&lt;/P&gt;&lt;P&gt;of the entire ranking, all rows get the lowest rank within the sharing group.&lt;/P&gt;&lt;P&gt;If all ranks within the sharing group fall on the high side of the middle value&lt;/P&gt;&lt;P&gt;of the entire ranking, all rows get the highest rank within the sharing group.&lt;/P&gt;&lt;P&gt;If ranks within the sharing group span over the middle value of the entire ranking,&lt;/P&gt;&lt;P&gt;all rows get the value corresponding to the average of the top and bottom&lt;/P&gt;&lt;P&gt;ranking in the entire column segment.&lt;/P&gt;&lt;P&gt;1 Lowest rank on all rows.&lt;/P&gt;&lt;P&gt;2 Average rank on all rows.&lt;/P&gt;&lt;P&gt;3 Highest rank on all rows.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4 Lowest rank on first row, then incremented by one for each row.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third parameter format specifies the text representation of the function result.&lt;/P&gt;&lt;P&gt;format&lt;/P&gt;&lt;P&gt;0 (default) Low value&amp;amp;' - '&amp;amp;high value on all rows (e.g. 3 - 4).&lt;/P&gt;&lt;P&gt;1 Low value on all rows.&lt;/P&gt;&lt;P&gt;2 Low value on first row, blank on the following rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of rows for mode 4 and format 2 is determined by the sort order of the chart dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718936#M1069932</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-08-21T07:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718937#M1069933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rank function format is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;rank(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; ] expression [ , mode [, format ] ]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here, the second parameter &lt;SPAN style="font-style: italic;"&gt;mode&lt;/SPAN&gt; specifies the number representation of the function result.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: italic;"&gt;mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;0 &lt;SPAN class="normal"&gt;(default)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;If all ranks within the sharing group fall on the low side of the middle value of the entire ranking, all rows get the lowest rank within the sharing group. &lt;BR /&gt;If all ranks within the sharing group fall on the high side of the middle value of the entire ranking, all rows get the highest rank within the sharing group. &lt;BR /&gt;If ranks within the sharing group span over the middle value of the entire ranking, all rows get the value corresponding to the average of the top and bottom ranking in the entire column segment.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;1&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on all rows.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;2&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Average rank on all rows.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;3&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Highest rank on all rows.&lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;4&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on first row, then incremented by one for each row.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the attached example to know the difference.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718937#M1069933</guid>
      <dc:creator />
      <dc:date>2014-08-21T07:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718938#M1069934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HEy , Thans for your reply... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718938#M1069934</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-08-21T07:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718939#M1069935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HEy , Thans for your reply... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/718939#M1069935</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-08-21T07:25:21Z</dc:date>
    </item>
  </channel>
</rss>

