<?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 Ranking expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254422#M495924</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;i'm quite confused about how to create a rank in expression. I need an expression that can get sort out the salesman rank. Each rank in each chart, so i want to have a 3 different chart that each chart can show its rank.&lt;/P&gt;&lt;P&gt;Who are in the rank 1, who in the rank 2 and so on..&lt;/P&gt;&lt;P&gt;please see attached qvw..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need it urgent..thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Feb 2012 10:18:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-05T10:18:05Z</dc:date>
    <item>
      <title>Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254422#M495924</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;i'm quite confused about how to create a rank in expression. I need an expression that can get sort out the salesman rank. Each rank in each chart, so i want to have a 3 different chart that each chart can show its rank.&lt;/P&gt;&lt;P&gt;Who are in the rank 1, who in the rank 2 and so on..&lt;/P&gt;&lt;P&gt;please see attached qvw..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need it urgent..thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2012 10:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254422#M495924</guid>
      <dc:creator />
      <dc:date>2012-02-05T10:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254423#M495925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you want to get the rank based on the amount or sum(amount) not based on id_salesrep, like in your sample, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a sample for QV11 using alternate states (the state called Test) to get the charts insensitive to selections in id_salesrep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2012 12:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254423#M495925</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-05T12:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254424#M495926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great.. but still having a weird result, if i select only 1 value in id_city then in the ranking 2 and 3 showing more than 1 id_city.&lt;/P&gt;&lt;P&gt;$::id_city &amp;lt;&amp;lt; i never saw any expression like this, where can i learn about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2012 14:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254424#M495926</guid>
      <dc:creator />
      <dc:date>2012-02-05T14:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254425#M495927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. You need to add the same set expression to your expressions in those charts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(&lt;STRONG&gt;{&amp;lt;id_city= $::id_city &amp;gt;}&lt;/STRONG&gt; amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not familiar with set analysis, please have a look at the Manual. There should also be a short explanation of the alternate state concept.&lt;/P&gt;&lt;P&gt;The :: is a scope operator, which unfortunately is not well explained in the Manual (neither is the actual use of alternate states within set anaylsis.&lt;/P&gt;&lt;P&gt;In short, the above set expression is telling QV to apply a field selection to field id_city (remember that the chart is in 'Test' alternate state) that is copied fom the selected selection state of field id_city in default state. Since we have the default state list boxes for this field to select in on the sheet, I just want to use that selection also in my alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2012 18:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/254425#M495927</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-05T18:33:41Z</dc:date>
    </item>
  </channel>
</rss>

