<?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 Sorting within a Rank function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-Rank-function/m-p/521887#M551678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to obtain the top 25% of members in a given org.&amp;nbsp; My issue is that around the cut-offs there are ties.&amp;nbsp; With the Rank(Field, 4) I am able to get the right number of members but the wrong members that make up those numbers.&amp;nbsp; In a table box I can sort by the Rank first and then by the members ID number.&amp;nbsp; The issue is I am trying to use this expression in a text object so I am not able to use the sort tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to Sort by Rank and then ID number within a text object.&amp;nbsp; I have already tried an Order By IDNumber ASC in the script and it didn't seem to make any difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 16:26:49 GMT</pubDate>
    <dc:creator>jpapador</dc:creator>
    <dc:date>2013-10-24T16:26:49Z</dc:date>
    <item>
      <title>Sorting within a Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-Rank-function/m-p/521887#M551678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to obtain the top 25% of members in a given org.&amp;nbsp; My issue is that around the cut-offs there are ties.&amp;nbsp; With the Rank(Field, 4) I am able to get the right number of members but the wrong members that make up those numbers.&amp;nbsp; In a table box I can sort by the Rank first and then by the members ID number.&amp;nbsp; The issue is I am trying to use this expression in a text object so I am not able to use the sort tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to Sort by Rank and then ID number within a text object.&amp;nbsp; I have already tried an Order By IDNumber ASC in the script and it didn't seem to make any difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 16:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-within-a-Rank-function/m-p/521887#M551678</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-10-24T16:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-within-a-Rank-function/m-p/521888#M551679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the ID number to create a fraction that can be added to the value you now rank on. &lt;/P&gt;&lt;P&gt;Maybe something like rank(Field+ IDNumber/100000,4)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 16:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-within-a-Rank-function/m-p/521888#M551679</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-24T16:50:54Z</dc:date>
    </item>
  </channel>
</rss>

