<?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: How to use rank function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870320#M1017058</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;For finding Top 5 Values use below expression:&lt;/P&gt;&lt;P&gt;=aggr(if(Rank(Sum(Value))&amp;lt;=5,Value),State)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.learnqlickview.com/how-to-use-rank-function/" title="http://www.learnqlickview.com/how-to-use-rank-function/"&gt;http://www.learnqlickview.com/how-to-use-rank-function/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 03:47:24 GMT</pubDate>
    <dc:creator>aveeeeeee7en</dc:creator>
    <dc:date>2015-04-08T03:47:24Z</dc:date>
    <item>
      <title>How to use rank function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870318#M1017056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Could anyone provide a sample qvw file for ranking function with aggregate?&lt;/P&gt;&lt;P&gt;I searched before posting but did not get the info.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870318#M1017056</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-04-08T03:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rank function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870319#M1017057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used rank for top n analysis as below in my dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;DomainName = {"=Rank(count(distinct EmpId),4)&amp;lt;=vTopN+1"}&amp;gt;}EmpId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870319#M1017057</guid>
      <dc:creator>sagarkharpude</dc:creator>
      <dc:date>2015-04-08T03:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rank function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870320#M1017058</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;For finding Top 5 Values use below expression:&lt;/P&gt;&lt;P&gt;=aggr(if(Rank(Sum(Value))&amp;lt;=5,Value),State)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.learnqlickview.com/how-to-use-rank-function/" title="http://www.learnqlickview.com/how-to-use-rank-function/"&gt;http://www.learnqlickview.com/how-to-use-rank-function/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870320#M1017058</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2015-04-08T03:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rank function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870321#M1017059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have only used ranked for pivot tables and limiting the amount of rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;though look at this thread several option were given here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/157792"&gt;Customers Having Top 4 Values&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870321#M1017059</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-08T03:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rank function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870322#M1017060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hi u can use rank to get top values see the below &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;From the manual &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;rank([ total ] expression [ , mode [, format ] ])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Evaluates expression, compares the result with the result of the other rows containing the current column segment&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and returns the ranking of the current row within the segment. For bitmap charts, the current column&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;straight table equivalent with the exception of the pivot table which has a more complex structure).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;is always equal to the entire column. If the table or table equivalent has multiple vertical dimensions,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;columns except for the column showing the last dimension in the inter field sort order.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In the case where several rows share the same ranking, the text and number representation can be controlled&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The second parameter mode specifies the number representation of the function result.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;mode&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;0 (default) If all ranks within the sharing group fall on the low side of the middle value&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;of the entire ranking, all rows get the lowest rank within the sharing group.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If all ranks within the sharing group fall on the high side of the middle value&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;of the entire ranking, all rows get the highest rank within the sharing group.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If ranks within the sharing group span over the middle value of the entire ranking,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;all rows get the value corresponding to the average of the top and bottom&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ranking in the entire column segment.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1 Lowest rank on all rows.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2 Average rank on all rows.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3 Highest rank on all rows.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The third parameter format specifies the text representation of the function result.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;format&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;0 (default) Low value&amp;amp;' - '&amp;amp;high value on all rows (e.g. 3 - 4).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1 Low value on all rows.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2 Low value on first row, blank on the following rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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>Wed, 08 Apr 2015 03:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870322#M1017060</guid>
      <dc:creator />
      <dc:date>2015-04-08T03:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use rank function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870323#M1017061</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7717"&gt;Top 5 analysis using Rank fuction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-rank-function/m-p/870323#M1017061</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-04-08T03:55:38Z</dc:date>
    </item>
  </channel>
</rss>

