<?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: Customers Having Top 4 Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801640#M1020580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish, asked by you I knowed it will be a difficult one, but I'm stubborn and I get something that may help you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a calculated dimension like:&lt;/P&gt;&lt;P&gt;=Aggr(If(Sum(Sales)&amp;gt;=Max(TOTAL Aggr(Sum(Sales), Customer), 4), Customer), Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you don't need the total this expression can work avoiding calculated dimension:&lt;/P&gt;&lt;P&gt;If(Sum(Sales)&amp;gt;=Max(TOTAL Aggr(Sum(Sales), Customer), 4), Sum(Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2015 15:45:56 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-03-26T15:45:56Z</dc:date>
    <item>
      <title>Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801639#M1020579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider I have below data..&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; B, 120&lt;/P&gt;&lt;P&gt;&amp;nbsp; C, 140&lt;/P&gt;&lt;P&gt;&amp;nbsp; D, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp; E, 45&lt;/P&gt;&lt;P&gt;&amp;nbsp; F, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp; G, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp; H, 120&lt;/P&gt;&lt;P&gt;&amp;nbsp; I, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp; J, 140&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want Straight Table Showing Customers having TOP 4 Sales....&lt;/P&gt;&lt;P&gt;TOP 4 Sales is&lt;/P&gt;&lt;P&gt;200, 150, 140, 120&lt;/P&gt;&lt;P&gt;So I need result something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(Sales)&lt;/P&gt;&lt;P&gt;G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 140&lt;/P&gt;&lt;P&gt;J&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 140&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&lt;/P&gt;&lt;P&gt;H&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE : I don't need the solution on SCRIPT level...&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 15:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801639#M1020579</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T15:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801640#M1020580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish, asked by you I knowed it will be a difficult one, but I'm stubborn and I get something that may help you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a calculated dimension like:&lt;/P&gt;&lt;P&gt;=Aggr(If(Sum(Sales)&amp;gt;=Max(TOTAL Aggr(Sum(Sales), Customer), 4), Customer), Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you don't need the total this expression can work avoiding calculated dimension:&lt;/P&gt;&lt;P&gt;If(Sum(Sales)&amp;gt;=Max(TOTAL Aggr(Sum(Sales), Customer), 4), Sum(Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 15:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801640#M1020580</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-03-26T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801641#M1020581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use as calculated dimension:&lt;/P&gt;&lt;P&gt;=aggr(Only({&amp;lt;Sales={'&amp;gt;$(=Max(Sales,5))'}&amp;gt;} Customer),Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801641#M1020581</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-03-26T16:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801642#M1020582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or with Customer as dimension&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Sales={'&amp;gt;$(=Max(Sales,5))'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;As expression, even better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801642#M1020582</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-03-26T16:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801643#M1020583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have given Sales here but there are always possibility of more than one lines of Sales per customer... So do SUM(Sales) will work here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801643#M1020583</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801644#M1020584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add this as a calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(If(Rank(avg(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sales&lt;/SPAN&gt;)) &amp;lt;= 4, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer&lt;/SPAN&gt;), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801644#M1020584</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-03-26T16:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801645#M1020585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why AVG here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801645#M1020585</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T16:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801646#M1020586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must be mis-understanding the requirement.&lt;/P&gt;&lt;P&gt;My 1st thought was a straight table with customer as dimension and sum(sales) as expression and then use Dimension Limits to show the top 4 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801646#M1020586</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-03-26T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801647#M1020588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the requirement is to show sum (all)sales for customers having the top 4 sales then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Customer=P({1&amp;lt;Sales={'&amp;gt;$(=Max(Sales,5))'}&amp;gt;} Customer)&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801647#M1020588</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-03-26T16:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801648#M1020590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need top 4 not top 5... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801648#M1020590</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T16:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801649#M1020592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;either sum or avg would work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801649#M1020592</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-03-26T16:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801650#M1020594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then your requirement is not clear to me, according to me this is displaying all the customers having a Top 4 sale value and then summing all their sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801650#M1020594</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-03-26T16:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801651#M1020596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piet,&lt;/P&gt;&lt;P&gt;Please consider below case..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,RowNo() as ID 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; B, 120&lt;/P&gt;&lt;P&gt;&amp;nbsp; C, 140&lt;/P&gt;&lt;P&gt;&amp;nbsp; D, 90&lt;/P&gt;&lt;P&gt;&amp;nbsp; E, 45&lt;/P&gt;&lt;P&gt;&amp;nbsp; F, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp; G, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; G, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp; H, 120&lt;/P&gt;&lt;P&gt;&amp;nbsp; I, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp; J, 140&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now accordingly to my requirement, top 4 values are &lt;/P&gt;&lt;P&gt;SUM(Sales) &lt;/P&gt;&lt;P&gt;200, 150,&amp;nbsp; 140, 120&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Need to have below customers in Straight Table and Pivot Table&lt;/P&gt;&lt;P&gt;G 200&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;F 150&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I 150&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;C 140&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;J 140&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;B 120&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;H 120&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But using your expression, it would give me &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;A 120 also... which is wrong as 120 is not the top 4 value...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope this will clear now.. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801651#M1020596</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T16:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801652#M1020597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt;Sales = {'&amp;gt;=$(=Max(Sales,4))'}&amp;gt;}Sales)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you must order with the same expresion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 16:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801652#M1020597</guid>
      <dc:creator>fvelascog72</dc:creator>
      <dc:date>2015-03-26T16:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801653#M1020598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will not work for my 2nd example given to Piet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 17:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801653#M1020598</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T17:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801654#M1020599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then the answer from Ruben was correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So without the if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Customer=P({1&amp;lt;Customer={'=Sum(Sales)&amp;gt;=Max(TOTAL Aggr(Sum(Sales), Customer), 4)'}&amp;gt;} Customer)&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 18:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801654#M1020599</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-03-26T18:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801655#M1020600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just realized that the avg does give a different value, than by using sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(If(Rank(sum(Sales)) &amp;lt;= 4, Customer), Customer) use this as the calculated dimension and suppress nulls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 19:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801655#M1020600</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-03-26T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801656#M1020601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ruben's answer is correct but waiting for someone if is there any other way to do it.... Otherwise i will close the thread by Ruben's answer tomorrow...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 19:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801656#M1020601</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-26T19:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801657#M1020602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI Manish&lt;/P&gt;&lt;P&gt;try this expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;Sales={'&amp;gt;$(=Max(Sales,5))'}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 08:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801657#M1020602</guid>
      <dc:creator />
      <dc:date>2015-03-27T08:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Customers Having Top 4 Values</title>
      <link>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801658#M1020603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: sum({&amp;lt;Customer={"=sum(Sales)&amp;gt;=$(=max(aggr(sum(Sales),Customer),4))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 08:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customers-Having-Top-4-Values/m-p/801658#M1020603</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-27T08:42:37Z</dc:date>
    </item>
  </channel>
</rss>

