<?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 function not working! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-function-not-working/m-p/443549#M165346</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;use HRank function,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 13:07:53 GMT</pubDate>
    <dc:creator>perumal_41</dc:creator>
    <dc:date>2012-09-26T13:07:53Z</dc:date>
    <item>
      <title>Rank function not working!</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-not-working/m-p/443548#M165345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with a rank function in a pivot table, I'm using the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rank ( TOTAL Sum ( {$1} REVs * Trade_YTDFlag ) ,1 ,1 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When no filters are applied I would appear to be getting correct results as per following screenshot (note that I have obfuscated the client names for security, but the Red line is the one that I will filter on for the second image):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22538" class="jive-image-thumbnail jive-image" onclick="" alt="screen1.png" src="https://community.qlik.com/legacyfs/online/22538_screen1.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when I filter on a particular client I get this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22539" class="jive-image-thumbnail jive-image" onclick="" alt="screen2.png" src="https://community.qlik.com/legacyfs/online/22539_screen2.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had thought that the {$1} in the sum function would work alongside the dimensions, but ignore selections but as you can see from the above screenshot all I now get is Rank 1 in every column when I should be seeing the exact same ranks as in the first screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate any help you can provide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 12:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-not-working/m-p/443548#M165345</guid>
      <dc:creator />
      <dc:date>2012-09-26T12:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function not working!</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-not-working/m-p/443549#M165346</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;use HRank function,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 13:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-not-working/m-p/443549#M165346</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-09-26T13:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function not working!</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-not-working/m-p/443550#M165347</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;HRank is a function that ranks a cell within the columns, i.e. would rank this cell against the other cells in the same row. This is not what I want, I am ranking the cell in a single column, but more importantly, ranking that cell whilst ignoring any selections that have been made.&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, 26 Sep 2012 13:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-not-working/m-p/443550#M165347</guid>
      <dc:creator />
      <dc:date>2012-09-26T13:51:01Z</dc:date>
    </item>
  </channel>
</rss>

