<?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: Ranking in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking/m-p/586801#M1115198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to rank them by Score, Age, Gender and Area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Feb 2014 10:58:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-14T10:58:36Z</dc:date>
    <item>
      <title>Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking/m-p/586799#M1115196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day Qlik-Nation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to rank the attached spreadsheet on my dashboard and I am using the following expression however it does no seem to be ranking correctly if i try to add another dimension...Please help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gender&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Male', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Div&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('-' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1,1),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '0000'), '-', -&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1,1),'0000' ) ),5)+1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and/or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Gender&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Male', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 10:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking/m-p/586799#M1115196</guid>
      <dc:creator />
      <dc:date>2014-02-14T10:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking/m-p/586800#M1115197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and by what do you want to rank them?&lt;/P&gt;&lt;P&gt;Understanding a formula without knowing what it's supposed to be doing is a bit hard - once you know the desired outcome, thinking out ways how to get there is much easier - likewise for supporters - it's a lot easier to tell why your formula isn't doing what you want when you tell what you actually want your formula to do &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 10:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking/m-p/586800#M1115197</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-02-14T10:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking/m-p/586801#M1115198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to rank them by Score, Age, Gender and Area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 10:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking/m-p/586801#M1115198</guid>
      <dc:creator />
      <dc:date>2014-02-14T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking/m-p/586802#M1115199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that order? What keeps you then from just inserting an "ORDER BY" in the script?&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; That can only be done in a RESIDENT LOAD - but that doesn't add much runtime once your data is loaded.&lt;/P&gt;&lt;P&gt;=&amp;gt; The syntax would then be&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;RESIDENT [tablename from first LOAD]&lt;/P&gt;&lt;P&gt;ORDER BY Score, Age, Gender, Area&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, unless you specify it otherwise, all the fields are ordered (first by Score, then by Age etc.) in ascending order - unless you type "desc" behind each field where it's applicable.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking/m-p/586802#M1115199</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-02-14T11:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking/m-p/586803#M1115200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks DataNibbler. I will try that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking/m-p/586803#M1115200</guid>
      <dc:creator />
      <dc:date>2014-02-14T11:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking/m-p/586804#M1115201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this you need to use AGGR with Rank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(num( rank( sum(Score ), 4)), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; Age, Gender and Area.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking/m-p/586804#M1115201</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-02-14T11:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking/m-p/586805#M1115202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pfa attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking/m-p/586805#M1115202</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-02-14T11:33:05Z</dc:date>
    </item>
  </channel>
</rss>

