<?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 Cascaded Ranking in the Script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cascaded-Ranking-in-the-Script/m-p/1520288#M37223</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 2 fields in a table i want to rank each row based on alphabetically A--&amp;gt;Z letter.&lt;/P&gt;&lt;P&gt;The Data set is like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Client, Branch&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Apple, Texas&lt;/P&gt;&lt;P&gt;Apple, Newyork&lt;/P&gt;&lt;P&gt;Apple, London&lt;/P&gt;&lt;P&gt;Beattle, Texas&lt;/P&gt;&lt;P&gt;Beattle, Munich&lt;/P&gt;&lt;P&gt;Orange, Boston&lt;/P&gt;&lt;P&gt;Orange, Callifornia&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;So in the script the resultant table will be&lt;/P&gt;&lt;P&gt;Client, Branch, Rank&lt;/P&gt;&lt;P&gt;Apple, Texas, 3&lt;/P&gt;&lt;P&gt;Apple, Newyork, 2&lt;/P&gt;&lt;P&gt;Apple, London, 1&lt;/P&gt;&lt;P&gt;Beattle, Texas, 2&lt;/P&gt;&lt;P&gt;Beattle, Munich, 1&lt;/P&gt;&lt;P&gt;Orange, Boston, 1&lt;/P&gt;&lt;P&gt;Orange, Callifornia, 2&lt;/P&gt;&lt;P&gt;Comments highly appreciated.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:03:32 GMT</pubDate>
    <dc:creator>qliksunil</dc:creator>
    <dc:date>2024-11-16T07:03:32Z</dc:date>
    <item>
      <title>Cascaded Ranking in the Script</title>
      <link>https://community.qlik.com/t5/App-Development/Cascaded-Ranking-in-the-Script/m-p/1520288#M37223</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have 2 fields in a table i want to rank each row based on alphabetically A--&amp;gt;Z letter.&lt;/P&gt;&lt;P&gt;The Data set is like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * Inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Client, Branch&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Apple, Texas&lt;/P&gt;&lt;P&gt;Apple, Newyork&lt;/P&gt;&lt;P&gt;Apple, London&lt;/P&gt;&lt;P&gt;Beattle, Texas&lt;/P&gt;&lt;P&gt;Beattle, Munich&lt;/P&gt;&lt;P&gt;Orange, Boston&lt;/P&gt;&lt;P&gt;Orange, Callifornia&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;So in the script the resultant table will be&lt;/P&gt;&lt;P&gt;Client, Branch, Rank&lt;/P&gt;&lt;P&gt;Apple, Texas, 3&lt;/P&gt;&lt;P&gt;Apple, Newyork, 2&lt;/P&gt;&lt;P&gt;Apple, London, 1&lt;/P&gt;&lt;P&gt;Beattle, Texas, 2&lt;/P&gt;&lt;P&gt;Beattle, Munich, 1&lt;/P&gt;&lt;P&gt;Orange, Boston, 1&lt;/P&gt;&lt;P&gt;Orange, Callifornia, 2&lt;/P&gt;&lt;P&gt;Comments highly appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cascaded-Ranking-in-the-Script/m-p/1520288#M37223</guid>
      <dc:creator>qliksunil</dc:creator>
      <dc:date>2024-11-16T07:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cascaded Ranking in the Script</title>
      <link>https://community.qlik.com/t5/App-Development/Cascaded-Ranking-in-the-Script/m-p/1520320#M37227</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LEFT JOIN ([Your table])&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Branch,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Client = peek('Client',-1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; peek('Rank', -1) + 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1) as Rank&lt;/P&gt;&lt;P&gt;RESIDENT [Your table]&lt;/P&gt;&lt;P&gt;ORDER BY Client, Branch&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 10:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cascaded-Ranking-in-the-Script/m-p/1520320#M37227</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2018-12-13T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cascaded Ranking in the Script</title>
      <link>https://community.qlik.com/t5/App-Development/Cascaded-Ranking-in-the-Script/m-p/1520337#M37229</link>
      <description>&lt;P&gt;This works fine.&lt;/P&gt;&lt;P&gt;Thanks a lot for your valuable suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 11:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cascaded-Ranking-in-the-Script/m-p/1520337#M37229</guid>
      <dc:creator>qliksunil</dc:creator>
      <dc:date>2018-12-13T11:04:13Z</dc:date>
    </item>
  </channel>
</rss>

