<?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 a simple selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732675#M262445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample App or Data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Aug 2014 17:46:51 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2014-08-23T17:46:51Z</dc:date>
    <item>
      <title>How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732672#M262442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure this is a simple question for&amp;nbsp; the experienced ones ... but as a bloody beginner to&amp;nbsp; QV it's costing me an afternoon without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the data in my (simplified) table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Month&amp;gt; &amp;lt;customer&amp;gt;&amp;lt;amount&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to plot a chart for each &amp;lt;customer&amp;gt; (i.e. customer in listbox)&amp;nbsp; and the dimension &amp;lt;month&amp;gt;.&lt;/P&gt;&lt;P&gt;The data in the chart should be sum(amount) and the rank of the (selected) customer (by sum(amount))&lt;/P&gt;&lt;P&gt;However I put the expression, I either get the rankings of all months or no result.&lt;/P&gt;&lt;P&gt;I'm sure I have to work with AGGR but wherever I place it seems to be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 16:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732672#M262442</guid>
      <dc:creator />
      <dc:date>2014-08-23T16:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732673#M262443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like the attached application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 17:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732673#M262443</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-08-23T17:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732674#M262444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear NagaianK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application you attached contains the chart for sum(amount) for each (selectable) customer over the dimension month. In this chart I want to add a line that represents the rank of the selected customer by sum(amount) among all customers per month. &lt;/P&gt;&lt;P&gt;In my understanding that means I have to calculate sum(amount) for each customer and month and plot the rank of the result for my selected customer for each month. This is where I have my problem.&lt;/P&gt;&lt;P&gt;Your help would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 17:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732674#M262444</guid>
      <dc:creator />
      <dc:date>2014-08-23T17:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732675#M262445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample App or Data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 17:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732675#M262445</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-08-23T17:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732676#M262446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANK( SUM ( Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with Month as the Dimension and selecting Customer from a list box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Aug 2014 18:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732676#M262446</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-08-23T18:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732677#M262447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've tried RANK(Sum(Amount). But then it ranks the months, pls see attached app:&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;On sheet 'dimension month' I have the chart by month with possible selection of customer plottin the amount. In this chart I want to integrate the information how the seleced customer ranks among his peers for each month. I have plotted that on the sheet 'dimension customer' where it shows that customer A is 3rd in month 1, 4th in months 2 and 3 and ranks 1st in month 4. This is what I want to plot additionally in the chart on sheet 'dimension month' for a selected customer ... I just don't know how.&lt;/P&gt;&lt;P&gt;I'm sure I need a set analysis together with AGGR but however I put it I just don't get the right result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 10:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732677#M262447</guid>
      <dc:creator />
      <dc:date>2014-08-24T10:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732678#M262448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try adding an Expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGGR(RANK(SUM(amount)),customer,month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached, is that what you need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 14:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732678#M262448</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-08-24T14:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732679#M262449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick reply, the app and your advice&lt;/P&gt;&lt;P&gt;.... unfortunatley the rankings that the expression returns are not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a comparison of the results, expected vs expepression:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 595px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="97"&gt;month&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="97"&gt;customer&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="97"&gt;Sum(amount)&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;" width="64"&gt;&lt;P&gt;Rank&lt;/P&gt;&lt;P&gt;expected&lt;/P&gt;&lt;/TD&gt;&lt;TD class="xl88" style="border-left: medium none;" width="240"&gt;AGGR(RANK(SUM(amount), customer, month)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="97"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none;" width="97"&gt;B&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;" width="97"&gt;200&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="97"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="97"&gt;C&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="97"&gt;150&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="97"&gt;1&lt;/TD&gt;&lt;TD class="xl80" style="border-left: medium none; border-top: medium none;" width="97"&gt;A&lt;/TD&gt;&lt;TD class="xl81" style="border-left: medium none; border-top: medium none;" width="97"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl85"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" height="20" style="border-top: medium none;" width="97"&gt;1&lt;/TD&gt;&lt;TD class="xl74" style="border-left: medium none; border-top: medium none;" width="97"&gt;D&lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="97"&gt;85&lt;/TD&gt;&lt;TD align="right" class="xl86"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" width="97"&gt;2&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none;" width="97"&gt;B&lt;/TD&gt;&lt;TD class="xl72" style="border-left: medium none;" width="97"&gt;180&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="97"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="97"&gt;C&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="97"&gt;170&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;2&lt;/TD&gt;&lt;TD class="xl82"&gt;1-2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="97"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="97"&gt;D&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="97"&gt;160&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" height="20" style="border-top: medium none;" width="97"&gt;2&lt;/TD&gt;&lt;TD class="xl78" style="border-left: medium none; border-top: medium none;" width="97"&gt;A&lt;/TD&gt;&lt;TD class="xl79" style="border-left: medium none; border-top: medium none;" width="97"&gt;110&lt;/TD&gt;&lt;TD align="right" class="xl87"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" width="97"&gt;3&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none;" width="97"&gt;B&lt;/TD&gt;&lt;TD class="xl72" style="border-left: medium none;" width="97"&gt;220&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="97"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="97"&gt;C&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="97"&gt;170&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;2&lt;/TD&gt;&lt;TD class="xl83"&gt;1-2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="97"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="97"&gt;D&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="97"&gt;145&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" height="20" style="border-top: medium none;" width="97"&gt;3&lt;/TD&gt;&lt;TD class="xl78" style="border-left: medium none; border-top: medium none;" width="97"&gt;A&lt;/TD&gt;&lt;TD class="xl79" style="border-left: medium none; border-top: medium none;" width="97"&gt;120&lt;/TD&gt;&lt;TD align="right" class="xl87"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" width="97"&gt;4&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none;" width="97"&gt;A&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none;" width="97"&gt;210&lt;/TD&gt;&lt;TD align="right" class="xl85"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="97"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="97"&gt;D&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="97"&gt;195&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="97"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="97"&gt;C&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="97"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl84"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl73" height="20" style="border-top: medium none;" width="97"&gt;4&lt;/TD&gt;&lt;TD class="xl74" style="border-left: medium none; border-top: medium none;" width="97"&gt;B&lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="97"&gt;65&lt;/TD&gt;&lt;TD align="right" class="xl86"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; As you can see the ranks from the expression are not representing the actual rank and I haven't managed to find out what they rank.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 15:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732679#M262449</guid>
      <dc:creator />
      <dc:date>2014-08-24T15:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732680#M262450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe because you have month as the first dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGGR(RANK(SUM(amount)),month,customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 16:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732680#M262450</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-08-24T16:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732681#M262451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, didn't work. Now I have all customers ranked 1st for every month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 16:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732681#M262451</guid>
      <dc:creator />
      <dc:date>2014-08-24T16:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to rank a simple selection</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732682#M262452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to get the rankings in the chart below.&lt;/P&gt;&lt;P&gt;Now I would like to modify the chart that only the line for customer A is visible. I can't use the listbox object to select the customer as this would change the ranking result, i.e. I want the ranking to be calculated across all customers.&lt;/P&gt;&lt;P&gt;Which setting do I have to change to make only one line visible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/67438_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 14:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-rank-a-simple-selection/m-p/732682#M262452</guid>
      <dc:creator />
      <dc:date>2014-09-23T14:05:08Z</dc:date>
    </item>
  </channel>
</rss>

