<?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: Dense Rank in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290276#M107724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please have a look at attached. Ranking will be per column segment, so if you want to rank customer's values per customer, you need a second dimension, I used Value for this, but probably something unique like OrderID etc. would be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And just replace Value with your expression needed to calculate the Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2011 14:59:07 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-08-31T14:59:07Z</dc:date>
    <item>
      <title>Dense Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290273#M107721</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;This might be very easy but I could not figure it out. I'm looking for a function for a dense rank in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;dense_rank( expression1, ... expression_n ) WITHIN GROUP ( ORDER BY expression1, ... expression_n )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does it work in QlikView pivot or table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function will be needed on pivot or table level.&lt;/P&gt;&lt;P&gt;The ranking can't be precalculated during load (skript) because one of the criteria will be calculated on the fly (tariff simulator). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290273#M107721</guid>
      <dc:creator>kkrause</dc:creator>
      <dc:date>2011-08-22T13:50:37Z</dc:date>
    </item>
    <item>
      <title>Dense Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290274#M107722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start with building your pivot or straight table, choose the dimensions as needed and set an expression after which you want the table's rows ranked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need a rank function, e.g. if you have sum(Sales) as expression and SalesPerson as dimension,&lt;/P&gt;&lt;P&gt;your rank could look like &lt;/P&gt;&lt;P&gt;= rank(sum(Sales))&lt;/P&gt;&lt;P&gt;This should already give a ranking of SalesPerson after Sales Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understood a dense rank is special, because it assigns equal values the same rank number, but continues ranking with the next rank order number, e.g. you may get something like:&lt;/P&gt;&lt;P&gt;Sales, Rank&lt;/P&gt;&lt;P&gt;300,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;300,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;200,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;200,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QV, you set the rank mode as second parameter to rank function, but I think density rank is no standard mode in QV, so if this is really needed, we have to look for a work around. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as a start off, try building a table and use rank function to get used to the QV charts and ranking (and have a look into rank() function in help file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 14:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290274#M107722</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-22T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dense Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290275#M107723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the first hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my solution it also helpful to rank over an partition CUSTOMER_ID (see example).&lt;/P&gt;&lt;P&gt;The column "value" will be calculated dynamically in a pivot table in dependency to a tariff tableau.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How must the statement looks like to generate this ranking? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 14:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290275#M107723</guid>
      <dc:creator>kkrause</dc:creator>
      <dc:date>2011-08-31T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dense Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290276#M107724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please have a look at attached. Ranking will be per column segment, so if you want to rank customer's values per customer, you need a second dimension, I used Value for this, but probably something unique like OrderID etc. would be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And just replace Value with your expression needed to calculate the Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 14:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290276#M107724</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-31T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dense Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290277#M107725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Nine one, thanks Stefan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 13:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dense-Rank/m-p/290277#M107725</guid>
      <dc:creator />
      <dc:date>2014-03-12T13:06:59Z</dc:date>
    </item>
  </channel>
</rss>

