<?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: comparing customers and ranking in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581729#M1096924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;IF(Aggr(Rank(SUM({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales),4),Customer)&amp;lt;=5, Customer)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2014 11:50:05 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-04-30T11:50:05Z</dc:date>
    <item>
      <title>comparing customers and ranking</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581727#M1096922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to&amp;nbsp; compare customers in specific year and show&amp;nbsp; the best 5 customers in terms of sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr(rank(Sum({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales)),Year,Customer)=5, Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems that scripts returns " the 5th" in rank instead of&amp;nbsp; " the 5 best customers". Any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 11:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581727#M1096922</guid>
      <dc:creator />
      <dc:date>2014-04-30T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: comparing customers and ranking</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581728#M1096923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like below script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;=if(aggr(rank(Sum({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales)),Year,Customer)&amp;gt;5, Customer)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;=if(aggr(rank(Sum({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales)),Year,Customer)&amp;lt;5, Customer)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;=if(aggr(rank(Sum({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales)),Year,Customer)&amp;lt;=5, Customer)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 11:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581728#M1096923</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-30T11:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: comparing customers and ranking</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581729#M1096924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;IF(Aggr(Rank(SUM({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales),4),Customer)&amp;lt;=5, Customer)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 11:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581729#M1096924</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-30T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: comparing customers and ranking</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581730#M1096925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try&lt;/P&gt;&lt;P&gt;below code.&lt;/P&gt;&lt;P&gt;=if(aggr(rank(Sum({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales)),Year,Customer)&amp;lt;=5, Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 11:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581730#M1096925</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-04-30T11:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: comparing customers and ranking</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581731#M1096926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Replace = by &amp;lt;=&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if(aggr(rank(Sum({&amp;lt;Year = {'$(=Max(Year))'}&amp;gt;}Sales)),Year,Customer)&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt;&lt;/SPAN&gt;5, Customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 11:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581731#M1096926</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-04-30T11:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: comparing customers and ranking</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581732#M1096927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to sort out ?&amp;nbsp; Best customer highest in the list ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 12:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581732#M1096927</guid>
      <dc:creator />
      <dc:date>2014-04-30T12:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: comparing customers and ranking</title>
      <link>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581733#M1096928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new thread !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 12:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/comparing-customers-and-ranking/m-p/581733#M1096928</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-30T12:08:31Z</dc:date>
    </item>
  </channel>
</rss>

