<?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: Get Top Customer Name based on Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872414#M1003551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try tis,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="top1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89082_top1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 11:36:11 GMT</pubDate>
    <dc:creator>buzzy996</dc:creator>
    <dc:date>2015-06-11T11:36:11Z</dc:date>
    <item>
      <title>Get Top Customer Name based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872412#M1003549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to display the top result from Customer field based on maximum value in Sales field; in this case (refer below table), I want to display Customer "XYZ" in a &lt;STRONG&gt;text box&lt;/STRONG&gt;. How can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Note: Below Values are dynamic and will change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); width: 250px; height: 144px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sales&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XYZ&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;QWE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ASD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;OPL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 11:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872412#M1003549</guid>
      <dc:creator />
      <dc:date>2015-06-11T11:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get Top Customer Name based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872413#M1003550</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 in the text Object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat({&amp;lt;Sales={'$(=Max(Sales))'}&amp;gt;}Customer, ',')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 11:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872413#M1003550</guid>
      <dc:creator>fvelascog72</dc:creator>
      <dc:date>2015-06-11T11:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get Top Customer Name based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872414#M1003551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try tis,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="top1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89082_top1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 11:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872414#M1003551</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-06-11T11:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get Top Customer Name based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872415#M1003552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!! Thanks Federico!! &lt;/P&gt;&lt;P&gt;=only({&amp;lt;sales={'$(=Max(sales))'}&amp;gt;}customer) --&amp;gt; returns only 1 value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=concat({&amp;lt;sales={'$(=Max(sales))'}&amp;gt;}customer) --&amp;gt; return all possible value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;eg: if i wanted customers doing low or &lt;STRONG&gt;least&lt;/STRONG&gt; sales..then I will use concat in my case since it has two values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=concat({&amp;lt;sales={'$(=&lt;STRONG&gt;Min&lt;/STRONG&gt;(sales))'}&amp;gt;}customer) --&amp;gt; returns ASD,OPL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 11:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872415#M1003552</guid>
      <dc:creator />
      <dc:date>2015-06-11T11:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get Top Customer Name based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872416#M1003553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue(Customer,-Aggr(Sum(Sales),Customer))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 11:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872416#M1003553</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2015-06-11T11:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get Top Customer Name based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872417#M1003554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I posted only, but later I edit post with concat option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 12:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872417#M1003554</guid>
      <dc:creator>fvelascog72</dc:creator>
      <dc:date>2015-06-11T12:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get Top Customer Name based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872418#M1003555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works as well!!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;firstsortedvalue(Customer,-Aggr(Sum(Sales),Customer))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 12:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Top-Customer-Name-based-on-Sales/m-p/872418#M1003555</guid>
      <dc:creator />
      <dc:date>2015-06-11T12:15:31Z</dc:date>
    </item>
  </channel>
</rss>

