<?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: How to Rank by Lowest number first in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245164#M93482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I dont know if this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2012 21:06:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-01T21:06:12Z</dc:date>
    <item>
      <title>How to Rank by Lowest number first</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245163#M93481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am just at my wits end on this...&amp;nbsp; I am using a calculated dimension to give a numerical rank to Hospitals based on a score.&amp;nbsp;&amp;nbsp; The problem is that the Rank formula seems to only work in decending order so the highest score is ranked 1... what i need is the reverse the lowest score should be ranked 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my expression in the calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(rank(Total Aggr((sum(Score)), hospital),0,1), hospital)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by the way i have tried the following but it still won't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(rank(Total Aggr(((sum(Score) * -1)), hospital),0,1), hospital)&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, 01 Feb 2012 20:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245163#M93481</guid>
      <dc:creator />
      <dc:date>2012-02-01T20:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Rank by Lowest number first</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245164#M93482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I dont know if this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 21:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245164#M93482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-01T21:06:12Z</dc:date>
    </item>
    <item>
      <title>How to Rank by Lowest number first</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245165#M93483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also believe that negating the sum(Score) should do what you want (like in Marcus example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also think that you don't need the inner aggr() function, probably&lt;/P&gt;&lt;P&gt;=aggr( rank(-sum(Score) ,0,1), hospital)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be enough.&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, 01 Feb 2012 21:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245165#M93483</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-01T21:42:58Z</dc:date>
    </item>
    <item>
      <title>How to Rank by Lowest number first</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245166#M93484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well i think i am getting closer... but now the problem is that the rankings seem to start at 28 rather then at 1 but the order is right&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 22:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245166#M93484</guid>
      <dc:creator />
      <dc:date>2012-02-01T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Rank by Lowest number first</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245167#M93485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you post a .qvw file containing your problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 22:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245167#M93485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-01T22:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Rank by Lowest number first</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245168#M93486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok here is a QVW file..&amp;nbsp;&amp;nbsp; So as you can see the calculated dimention works with you choose "Decubitus Ulcer" and ranks the hospitals 1,2,3,4 but when you choose " Post-op Sepsis"&amp;nbsp; the ranking starts at 2 rather then 1. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 21:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245168#M93486</guid>
      <dc:creator />
      <dc:date>2012-02-07T21:36:34Z</dc:date>
    </item>
    <item>
      <title>How to Rank by Lowest number first</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245169#M93487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rank 1 is assigned to Hosp A, but the expression value avg(raj) is zero. Since you suppress zero values in presentation tab, this line is hidden.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 21:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/245169#M93487</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-07T21:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Rank by Lowest number first</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/1531343#M438758</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Negation worked for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 06:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Rank-by-Lowest-number-first/m-p/1531343#M438758</guid>
      <dc:creator>anu</dc:creator>
      <dc:date>2019-01-17T06:25:59Z</dc:date>
    </item>
  </channel>
</rss>

