<?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: Ranking function not ranking properly when there are duplicate values. How to fix this? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980864#M334860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a parameter in the rank() function for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default the 2nd parameter is 0 for 'mode' but sounds like you want 1 or 3 ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100669_Capture.PNG" style="height: 223px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 15:13:10 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-10-01T15:13:10Z</dc:date>
    <item>
      <title>Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980863#M334859</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;&lt;/P&gt;&lt;P&gt;I have the following output in my Straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100670_Capture.JPG" style="height: 719px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the rank function in the last column does x - y when there are duplicate values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the ranking to not do that and instead assign the same number for the duplicate values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the rank function is not the right thing to use and I am open to other suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, what I would like is 9-10 output in the two rows above to be 9 for both and then assign 10 for the next person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My chart above has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EmployeeName as Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression is Sum(Salary)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranking expression is Rank(Sum(Salary))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great &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, 01 Oct 2015 15:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980863#M334859</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2015-10-01T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980864#M334860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a parameter in the rank() function for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default the 2nd parameter is 0 for 'mode' but sounds like you want 1 or 3 ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100669_Capture.PNG" style="height: 223px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980864#M334860</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-10-01T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980865#M334861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need this in a sorted table you could simply use rowno(total).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980865#M334861</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-10-01T15:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980866#M334862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=Num(Rank(Total Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Year Salary]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;),4))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980866#M334862</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-01T15:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980867#M334863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that but it made no impact to my results. They stay the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980867#M334863</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2015-10-01T15:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980868#M334864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - looks like the 3rd parameter is also needed to get rid of the x-y values . But i do like Manish's approach too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE:&amp;nbsp;&amp;nbsp; rank( &amp;lt;expression&amp;gt; ,1,1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980868#M334864</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-10-01T15:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980869#M334865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to do the job. Could you please explain what the 3 and num function does to make it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the 3 without the num and it did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980869#M334865</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2015-10-01T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980870#M334866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rank (expression,4) &lt;/P&gt;&lt;P&gt;Will give incremental rank... i.e. if there are lines having same Rank, it will allocated incremental rank... Say there lines are having rank 4-6, this expression will allocate rank 4 5 and 6 to different lines... You can read reference manual for further information and to understand the difference between 2nd and 3rd parameters &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 16:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980870#M334866</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-10-01T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking function not ranking properly when there are duplicate values. How to fix this?</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980871#M334867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just set expression value in Number as integer.you will get the proper ranking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 09:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-function-not-ranking-properly-when-there-are-duplicate/m-p/980871#M334867</guid>
      <dc:creator />
      <dc:date>2015-12-31T09:24:20Z</dc:date>
    </item>
  </channel>
</rss>

