<?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 Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-Problem/m-p/275608#M102837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm! And you're correct on the Carol-Julian thing as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;.&lt;/P&gt;&lt;P&gt;Thnks Stefan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2011 16:01:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-13T16:01:48Z</dc:date>
    <item>
      <title>Ranking Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Problem/m-p/275606#M102835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone and thanks in advanced for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do what I would have thought a basic sales analysis, however I haven't been able to get arround some ranking problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a texbox (It doesen't HAVE to be a text box, but it would be better) to show me the name of my top X salesman (ranked by sales amount). In a second text box I need to see that persons top X products sold (again, ranked by sales amount). Since each salesman could hypothetically sell different products in order for each salesman top X products to appear the first condition should be if he/she actually sold those products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the explanation might have been a bit fuzzy, so Im including both my .qvw file and my original data in .xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips will be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 23:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Problem/m-p/275606#M102835</guid>
      <dc:creator />
      <dc:date>2011-07-12T23:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Problem/m-p/275607#M102836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Francisco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to develop a solution, but in my App Carol is #2 instead of Julian &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used &lt;/P&gt;&lt;P&gt;= only({&amp;lt;Salesman= {"=rank(sum(Amount),Salesman) =1"}&amp;gt;} Salesman )&lt;/P&gt;&lt;P&gt;for top Salesman retrieval and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=firstsortedvalue({&amp;lt;Salesman= {"=rank(sum(Amount),Salesman) =1"}&amp;gt;} Product, -1 * aggr(sum(Amount), Salesman, Product),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the Top product of the top Salesman.&lt;/P&gt;&lt;P&gt;For second, third, just adapt the magic numbers (the -1 in second argument to firstsortedvalue is for descending ordering).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check if this is what you want, if you have any questions, I'll be glad to answer.&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, 13 Jul 2011 00:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Problem/m-p/275607#M102836</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-13T00:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Problem/m-p/275608#M102837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm! And you're correct on the Carol-Julian thing as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;.&lt;/P&gt;&lt;P&gt;Thnks Stefan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 16:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Problem/m-p/275608#M102837</guid>
      <dc:creator />
      <dc:date>2011-07-13T16:01:48Z</dc:date>
    </item>
  </channel>
</rss>

