<?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 Top 5 in google maps in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-5-in-google-maps/m-p/297784#M495842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I justed tried another expression: ﻿&lt;/P&gt;&lt;P&gt;=aggr(if(rank(count(Competitor),4)&amp;lt;=5, count(Competitor),0),SalesPerson, BusinessUnit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that didn't work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2012 11:09:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-20T11:09:09Z</dc:date>
    <item>
      <title>Top 5 in google maps</title>
      <link>https://community.qlik.com/t5/QlikView/Top-5-in-google-maps/m-p/297783#M495841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to get the top 5 competitors per region in google maps.&lt;/P&gt;&lt;P&gt;I have 4 fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesPerson&lt;/P&gt;&lt;P&gt;Competitor&lt;/P&gt;&lt;P&gt;Business Unit&lt;/P&gt;&lt;P&gt;ZIP code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the top 5 of each Region. Each SalesPerson repesents a region and a business unit.&lt;/P&gt;&lt;P&gt;So SalesPerson John represents: ZIP 10 till 50 and is from the business unit: A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have ZIP code as an dimension and tried the following three expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rank(count(if(SalesPerson='John', Competitor)),4)&amp;lt;=5, Count(Competitor),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(rank(count(Competitor),4)&amp;lt;=5, SalesPerson)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rank(count(Competitor),4)&amp;lt;=5, count(Competitor),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with the first expression is that it only works if I select John, the other problem is that I need to make an expression for each salesperson, which is not efficient. The second expression doesn't work. The third expression takes the top 5 of all the regions in total, which is not what i want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last but not least, I need to display who these competitors are, So I tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Competitors &amp;amp; ': ' &amp;amp; Aggr(rank(count(Competitor),4)&amp;lt;=5, SalesPerson)&lt;/P&gt;&lt;P&gt;=Competitors &amp;amp; ': ' &amp;amp; if(rank(count(if(SalesPerson='John', Competitor)),4)&amp;lt;=5, Count(Competitor),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope some one can help or point me to the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 16:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-5-in-google-maps/m-p/297783#M495841</guid>
      <dc:creator />
      <dc:date>2012-02-19T16:10:20Z</dc:date>
    </item>
    <item>
      <title>Top 5 in google maps</title>
      <link>https://community.qlik.com/t5/QlikView/Top-5-in-google-maps/m-p/297784#M495842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I justed tried another expression: ﻿&lt;/P&gt;&lt;P&gt;=aggr(if(rank(count(Competitor),4)&amp;lt;=5, count(Competitor),0),SalesPerson, BusinessUnit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that didn't work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 11:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-5-in-google-maps/m-p/297784#M495842</guid>
      <dc:creator />
      <dc:date>2012-02-20T11:09:09Z</dc:date>
    </item>
    <item>
      <title>Top 5 in google maps</title>
      <link>https://community.qlik.com/t5/QlikView/Top-5-in-google-maps/m-p/297785#M495843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Top 5 competitors....Top of sales I suppose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an expression to get Top 5 Customers Sales of each month in a Chart with YearMonth and Customer as dimensions.. You can ajust it to work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if( aggr(rank(&amp;nbsp; SUM(Sale_Value)), YearMonth, Customer ) &amp;lt;= 5,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Sale_Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 16:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-5-in-google-maps/m-p/297785#M495843</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2012-02-20T16:17:27Z</dc:date>
    </item>
  </channel>
</rss>

