<?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 Row details corresponding to max value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808428#M661660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the below mentioned data&lt;/P&gt;&lt;P&gt;Customer Sales&lt;/P&gt;&lt;P&gt;A 10&lt;/P&gt;&lt;P&gt;A 20&lt;/P&gt;&lt;P&gt;A 30&lt;/P&gt;&lt;P&gt;B 10&lt;/P&gt;&lt;P&gt;B 20&lt;/P&gt;&lt;P&gt;B 10&lt;/P&gt;&lt;P&gt;I want to know the customer with maximum sale. The answer i expect is A. I have got the sum using aggr() function of 60 but don't know how to get "A" as an output. Any help would be highly appreciated. Also i am new to Qlikview so pardon my ignorance. Moreover i also need to find the 2nd and 3rd best customer so if possible please suggest the changes required for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 10:59:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-16T10:59:09Z</dc:date>
    <item>
      <title>Row details corresponding to max value</title>
      <link>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808428#M661660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the below mentioned data&lt;/P&gt;&lt;P&gt;Customer Sales&lt;/P&gt;&lt;P&gt;A 10&lt;/P&gt;&lt;P&gt;A 20&lt;/P&gt;&lt;P&gt;A 30&lt;/P&gt;&lt;P&gt;B 10&lt;/P&gt;&lt;P&gt;B 20&lt;/P&gt;&lt;P&gt;B 10&lt;/P&gt;&lt;P&gt;I want to know the customer with maximum sale. The answer i expect is A. I have got the sum using aggr() function of 60 but don't know how to get "A" as an output. Any help would be highly appreciated. Also i am new to Qlikview so pardon my ignorance. Moreover i also need to find the 2nd and 3rd best customer so if possible please suggest the changes required for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 10:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808428#M661660</guid>
      <dc:creator />
      <dc:date>2015-03-16T10:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Row details corresponding to max value</title>
      <link>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808429#M661662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work , it uses a 'search mask' in the set analysis modifier to filter for specific customers.&amp;nbsp; Its designed to bring back 1 customer.&amp;nbsp; I use only() to bring back a text based value. You could also use concat()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only( distinct {&amp;lt;Customer={"=rank( aggr(sum(Sales),Customer))=1"}&amp;gt;} Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for #2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only( distinct {&amp;lt;Customer={"=rank( aggr(sum(Sales),Customer))=2"}&amp;gt;} Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 03:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808429#M661662</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-17T03:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Row details corresponding to max value</title>
      <link>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808430#M661665</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;Try this expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Rank 1:&lt;/P&gt;&lt;P&gt;=only(&amp;nbsp; {&amp;lt;Customer={"=rank( aggr(sum(Sales),Customer))=1"}&amp;gt;}&amp;nbsp; Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Rank 2:&lt;/P&gt;&lt;P&gt;=only(&amp;nbsp; {&amp;lt;Customer={"=rank( aggr(sum(Sales),Customer))=2"}&amp;gt;}&amp;nbsp; Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 04:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808430#M661665</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-03-17T04:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Row details corresponding to max value</title>
      <link>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808431#M661667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this in Dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr(rank(sum(Sales)),Customer)=1,Customer)&amp;nbsp;&amp;nbsp; // if you want to display only the first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr(rank(sum(Sales)),Customer)&amp;lt;=2,Customer) // if you want rank 1 and rank 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In expression:&lt;/P&gt;&lt;P&gt;sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: make sure to check suppress when value is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 04:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808431#M661667</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-03-17T04:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Row details corresponding to max value</title>
      <link>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808432#M661668</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;please use below script in edit script as well as please find attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;TEMP:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; CUSTOMER, SALES&lt;BR /&gt; A, 10&lt;BR /&gt; A, 20&lt;BR /&gt; A, 30&lt;BR /&gt; B, 10&lt;BR /&gt; B, 20&lt;BR /&gt; B, 30&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; INLINE:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SALES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; TEMP &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Group&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CUSTOMER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; TEMP; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 05:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808432#M661668</guid>
      <dc:creator />
      <dc:date>2015-03-17T05:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Row details corresponding to max value</title>
      <link>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808433#M661671</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;Thanks a lot for the reply. The solution proposed works for me perfectly. Though i was wondering what should be the approach in case two customer has same rank as only() function returns NULL in those cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 20:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Row-details-corresponding-to-max-value/m-p/808433#M661671</guid>
      <dc:creator />
      <dc:date>2015-03-17T20:24:19Z</dc:date>
    </item>
  </channel>
</rss>

