<?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 (Displaying 1st, 2nd, 3rd) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889918#M310099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably not.&amp;nbsp; I believe in mapping &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 14:15:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-06T14:15:38Z</dc:date>
    <item>
      <title>RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889917#M310098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a chart and used the RANK function to display sales data with the highest first, lowest last and added a "Ranking" column. What I want to do though is instead of displaying "1", "2", "3" etc. in the Ranking column I want to display it as "1st","2nd","3rd" etc. &lt;/P&gt;&lt;P&gt;I expect there's something I could do with mapping but is there an easier way to achieve this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help. &lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889917#M310098</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2015-05-06T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889918#M310099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably not.&amp;nbsp; I believe in mapping &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889918#M310099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T14:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889919#M310100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Rank(Sum(Sales)) = 1, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Rank(Sum(Sales)) &amp;amp; 'st',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;If(Rank(Sum(Sales)) = 2, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Rank(Sum(Sales)) &amp;amp; 'nd',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;If(Rank(Sum(Sales)) = 3, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Rank(Sum(Sales)) &amp;amp; 'rd', &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Rank(Sum(Sales)) &amp;amp; 'th')))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889919#M310100</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2015-05-06T14:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889920#M310101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but it doesn't look simpler than mapping to me.&amp;nbsp; What about 21st or 32nd?&amp;nbsp; You have to check not just the rank, but the last digit of the rank.&amp;nbsp; I guess, the same with mapping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889920#M310101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T14:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889921#M310102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah you are right... it's more complicated than this if you need to show all the items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking in something like a top ten chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be mapping is the best solution.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889921#M310102</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2015-05-06T14:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889922#M310103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would this not get messy when you get equal ranks like 3-4?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889922#M310103</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-05-06T14:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889923#M310104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, thanks folks - my data (oddly enough) goes up to 32nd so I'd probably rule out an IF statement in this particular case. I was kind of hoping there was some clever function that I couldn't find that did it but guess not!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping it is I guess!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889923#M310104</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2015-05-06T14:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889924#M310105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On this case, I would try using the Rank parameters, like Rank(Sum(Sales),1,1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889924#M310105</guid>
      <dc:creator>julian_rodriguez</dc:creator>
      <dc:date>2015-05-06T14:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889925#M310106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a good point Andrew, there are a lot of combinations between 1 and 32 (I don't care to do that maths). &lt;/P&gt;&lt;P&gt;For something that's essentially cosmetic I might not actually bother... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt; I'm a little surprised it's not a built in function though if I'm honest. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889925#M310106</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2015-05-06T14:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: RANK (Displaying 1st, 2nd, 3rd)</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889926#M310107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an old post but thought I would add this as I had the same need and came up with the folowing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If($(mRank)=11,'th',&lt;/P&gt;&lt;P&gt; IF(Right($(mRank),1)=1,'st',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Right($(mRank),1)=2,'nd',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(Right($(mRank),1)=3,'rd','th'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mRank calculates the rank value - - &lt;SPAN style="font-size: 10pt;"&gt;something like this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Aggr(Rank(total Sum({1&amp;lt;[Set Expressions] &amp;gt;}count)),[AGGR LEVEL])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Jon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 03:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-Displaying-1st-2nd-3rd/m-p/889926#M310107</guid>
      <dc:creator>AcumenJonFoote</dc:creator>
      <dc:date>2018-08-22T03:37:23Z</dc:date>
    </item>
  </channel>
</rss>

