<?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: Rank and Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669937#M243445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Customer = {"=Rank(SUM({&amp;lt;Customer -= {'-'}&amp;gt;}Sales))=2"}&amp;gt;}Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if they are nulls or blanks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Customer = {"=Rank(SUM({&amp;lt;Customer = {'=len(trim(Customer))&amp;gt;0'}&amp;gt;}Sales))=2"}&amp;gt;}Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 13:20:40 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-06-27T13:20:40Z</dc:date>
    <item>
      <title>Rank and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669936#M243444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have below table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Customer, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; A, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; -, 120&lt;/P&gt;&lt;P&gt;&amp;nbsp; -, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; B, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp; C, 10&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need Customer having 2nd and 3rd highest sales ignoring no customer i.e. '-'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual application is different and I can't do any changes in the script.. This should be done only in UI side...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying below to get the top customer... need 2nd and 3rd also...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;Customer = {"=Rank(SUM(Sales))=1"}&amp;gt;}Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669936#M243444</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-27T13:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rank and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669937#M243445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Customer = {"=Rank(SUM({&amp;lt;Customer -= {'-'}&amp;gt;}Sales))=2"}&amp;gt;}Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if they are nulls or blanks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Customer = {"=Rank(SUM({&amp;lt;Customer = {'=len(trim(Customer))&amp;gt;0'}&amp;gt;}Sales))=2"}&amp;gt;}Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669937#M243445</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-06-27T13:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rank and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669938#M243446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could also try out firstsortedvalue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=firstsortedValue(Customer, -aggr(sum({&amp;lt;Customer -= {'-'}&amp;gt;}Sales), Customer), 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=firstsortedValue(Customer, -aggr(sum({&amp;lt;Customer -= {'-'}&amp;gt;}Sales), Customer), 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=firstsortedValue(Customer, -aggr(sum({&amp;lt;Customer -= {'-'}&amp;gt;}Sales), Customer), 3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669938#M243446</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-06-27T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rank and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669939#M243447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669939#M243447</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-06-27T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rank and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669940#M243448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(match(rank(sum({$&amp;lt;Customer={"*"}&amp;gt;} Sales)),2,3),Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;supposing - is null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-and-Set-Analysis/m-p/669940#M243448</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-27T13:43:00Z</dc:date>
    </item>
  </channel>
</rss>

