<?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 How to Give Rank within a Group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096154#M364149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to give a rank according to Sales but not on overall but within a groups. for e.g. I want a rank within a group for sales in Traditional, Ulip and Saving. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have tried with a below given logic but by this logic I am getting a rank overall where as my requirement is within a Group..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD Product, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sub_Product, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoNumber(Sale) as Rank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident A Order by Sale desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Mar 2016 06:15:41 GMT</pubDate>
    <dc:creator>pra_kale</dc:creator>
    <dc:date>2016-03-05T06:15:41Z</dc:date>
    <item>
      <title>How to Give Rank within a Group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096154#M364149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to give a rank according to Sales but not on overall but within a groups. for e.g. I want a rank within a group for sales in Traditional, Ulip and Saving. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have tried with a below given logic but by this logic I am getting a rank overall where as my requirement is within a Group..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD Product, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sub_Product, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoNumber(Sale) as Rank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident A Order by Sale desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 06:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096154#M364149</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2016-03-05T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Give Rank within a Group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096155#M364150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 06:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096155#M364150</guid>
      <dc:creator>mightyqlikers</dc:creator>
      <dc:date>2016-03-05T06:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Give Rank within a Group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096156#M364151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this at front end, I don't have licensed version so cannot view qvw, below image can help, Product/SubProduct are chosen as dimension in straight table - &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117058_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 07:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096156#M364151</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-05T07:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Give Rank within a Group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096157#M364152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your script looks ok. Only change you need is below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(Sale,Product) as Rank&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 07:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096157#M364152</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-05T07:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Give Rank within a Group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096158#M364153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kush working fine..Thanks Sam and Digvijay Too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 09:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1096158#M364153</guid>
      <dc:creator>pra_kale</dc:creator>
      <dc:date>2016-03-05T09:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Give Rank within a Group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1575261#M442493</link>
      <description>&lt;P&gt;This approach gives the correct results, but is incredibly slow for anything but the smallest data volume. I wrote this up here:&amp;nbsp;&lt;A href="https://www.michaelsteedle.com/2019/04/ranking-within-group-quickly-in-qlik.html" target="_blank"&gt;https://www.michaelsteedle.com/2019/04/ranking-within-group-quickly-in-qlik.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;TL;DR This is &amp;gt;99% faster:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If(Product = Previous(Product), Peek(Rank) + 1, 1) as Rank&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 17:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1575261#M442493</guid>
      <dc:creator>msteedle</dc:creator>
      <dc:date>2019-04-30T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Give Rank within a Group</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1719440#M451764</link>
      <description>&lt;P&gt;Thanks Mike,&lt;/P&gt;&lt;P&gt;Great solution. Took a little while to find this, so a 'like' might help future searchers.&lt;/P&gt;&lt;P&gt;Nice work &amp;amp; website too.&lt;/P&gt;&lt;P&gt;Thanks, nick&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 01:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Give-Rank-within-a-Group/m-p/1719440#M451764</guid>
      <dc:creator>nick_creek</dc:creator>
      <dc:date>2020-06-17T01:48:04Z</dc:date>
    </item>
  </channel>
</rss>

