<?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 for non-numeric values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782068#M533961</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;Thank you very much for this. I'm not able to touch the load script, however. Is it possible to accomplish similar from a calculated dimension or from Sort at a chart level?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 10:23:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-11T10:23:47Z</dc:date>
    <item>
      <title>Rank function for non-numeric values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782066#M533959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Segment field with values 'H', 'M', 'L'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sort these, I am not able to use load order, alphabetical, etc. Without adding an INLINE table to the script, is it possible to use tha Rank function to order my segments like H, M, L in my table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 10:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782066#M533959</guid>
      <dc:creator />
      <dc:date>2015-03-11T10:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function for non-numeric values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782067#M533960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use as below..&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; Dual(Field,Ord(Field)) as Field &lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Field&lt;/P&gt;&lt;P&gt;&amp;nbsp; H&lt;/P&gt;&lt;P&gt;&amp;nbsp; M&lt;/P&gt;&lt;P&gt;&amp;nbsp; N&lt;/P&gt;&lt;P&gt;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;&amp;nbsp; Z&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can sort by ascending or descending order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 10:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782067#M533960</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-11T10:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function for non-numeric values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782068#M533961</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;Thank you very much for this. I'm not able to touch the load script, however. Is it possible to accomplish similar from a calculated dimension or from Sort at a chart level?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 10:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782068#M533961</guid>
      <dc:creator />
      <dc:date>2015-03-11T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function for non-numeric values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782069#M533962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;mvankluyve,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;you won't be able to use rank like this, you could potentially load your field as a dual() so that each value does have an underlying numerical value for you to sort using.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;The other option you have is to sort via an expression and define the order within this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Joe&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 10:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782069#M533962</guid>
      <dc:creator />
      <dc:date>2015-03-11T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function for non-numeric values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782070#M533963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use an expression to sort the chart. On the Sort tab choose the option Sort By Expression and use this expression: &lt;EM&gt;=match(only(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;{1}&lt;/SPAN&gt;Segment), 'H','M','L')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 10:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782070#M533963</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-11T10:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function for non-numeric values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782071#M533964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant - thanks so much, Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 10:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-for-non-numeric-values/m-p/782071#M533964</guid>
      <dc:creator />
      <dc:date>2015-03-11T10:28:34Z</dc:date>
    </item>
  </channel>
</rss>

