<?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 on multiple dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305952#M618858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample qvw to take a look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 14:01:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-04-12T14:01:59Z</dc:date>
    <item>
      <title>Rank on multiple dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305951#M618857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table which ranks Top 10 products based on their sales, for products with equal sales I get same rank. When the ranks are same I want to rank those products based on their market sales.&lt;/P&gt;&lt;P&gt;I have the below table,&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="159831" alt="abdc_rank_demo1.JPG" class="jive-image image-1" height="191" src="https://community.qlik.com/legacyfs/online/159831_abdc_rank_demo1.JPG" style="height: 191.086px; width: 381px;" width="381" /&gt;&lt;/P&gt;&lt;P&gt;For example , Products P1,P2 and P5 have same rank 9, now I want to rank them 7,8 and 9 based on their market volume.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Aggr(Num(Rank(Sum (Volume))),Product) = Aggr(Num(Rank(Sum (Volume))),Product),&lt;/P&gt;&lt;P&gt;Aggr(Num(Rank(Sum (Volume),4,1)),Market,Product),&lt;/P&gt;&lt;P&gt;Aggr(Num(Rank(Sum (Volume),4,1)),Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which gives me the below result,&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="159833" alt="abcd_rank_2.JPG" class="jive-image image-2" height="200" src="https://community.qlik.com/legacyfs/online/159833_abcd_rank_2.JPG" style="height: 200.055px; width: 401px;" width="401" /&gt;&lt;/P&gt;&lt;P&gt;As you can see here, I get discontinuous rank.&lt;/P&gt;&lt;P&gt;Here the expression ranks the products based on their market volume but again starts the ranking from 1.&lt;/P&gt;&lt;P&gt;I want to keep my interactive sort active so as the user can understand how the sorting is taking place here and need a continuous ranking on the products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest a solution on how can I achieve this scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krutika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 08:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305951#M618857</guid>
      <dc:creator>ktembharey</dc:creator>
      <dc:date>2017-04-12T08:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rank on multiple dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305952#M618858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample qvw to take a look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305952#M618858</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-12T14:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rank on multiple dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305953#M618859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you should try something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Aggr(Num(Rank(TOTAL Sum (Volume),4)),Product,Market.Product)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 14:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305953#M618859</guid>
      <dc:creator>kevinchevrier</dc:creator>
      <dc:date>2017-04-12T14:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rank on multiple dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305954#M618860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;Market.Product&lt;/SPAN&gt;" is not working in the expression. It gave me no values. I couldn't understand exactly how is this expression working though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later I found a solution for this scenario in another discussion &lt;A href="https://community.qlik.com/thread/246279"&gt;Ranking in case of tie breaker with respect to other metrics&lt;/A&gt; which worked perfectly for me.&lt;/P&gt;&lt;P&gt;Here they used the below expression for ranking the products,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(num(rank((sum(vol_units)+sum(YourSecondMatrics)/1E10),4,1))&amp;lt;=4,CUSTOMER),CUSTOMER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for replying !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krutika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 14:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-on-multiple-dimension/m-p/1305954#M618860</guid>
      <dc:creator>ktembharey</dc:creator>
      <dc:date>2017-04-13T14:51:32Z</dc:date>
    </item>
  </channel>
</rss>

