<?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: MAX Distinct seler per client? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622064#M1114594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max(Aggr(Count(Distinct Transaction),Agent))&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Max(TOTAL Aggr(Count(Distinct Transaction),Agent))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 07:00:57 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-02-24T07:00:57Z</dc:date>
    <item>
      <title>MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622063#M1114593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A have a straight table, with customer in dimension and count of distinct agent who had transactions with this customer, how to find who had the most and what is the number of transactions. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 06:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622063#M1114593</guid>
      <dc:creator />
      <dc:date>2014-02-24T06:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622064#M1114594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max(Aggr(Count(Distinct Transaction),Agent))&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Max(TOTAL Aggr(Count(Distinct Transaction),Agent))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 07:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622064#M1114594</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-24T07:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622065#M1114595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about just sorting the Count(distinct Transactions) descending? Then you will get the interesting agent as the top line in the chart. Very visual and intuitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 07:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622065#M1114595</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-24T07:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622066#M1114596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have these fields:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Customer&lt;/TD&gt;&lt;TD width="64"&gt;transaction nr.&lt;/TD&gt;&lt;TD width="64"&gt;Agent&lt;/TD&gt;&lt;TD width="64"&gt;Value $&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;john 1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;john 2&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;125&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;john 1&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;john 2&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;john 1&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;john 2&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to get this straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="320"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Customer&lt;/TD&gt;&lt;TD width="64"&gt;Distinct Agent&lt;/TD&gt;&lt;TD width="64"&gt;Number of transacions&lt;/TD&gt;&lt;TD width="64"&gt;Max Agent&lt;/TD&gt;&lt;TD width="64"&gt;Max agent value of transactions&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;john 1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;john 2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;325&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 07:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622066#M1114596</guid>
      <dc:creator />
      <dc:date>2014-02-24T07:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622067#M1114597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 07:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622067#M1114597</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-24T07:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622068#M1114598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish, but could you paste the expresions, because of security issues i can`t download the qvw. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 07:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622068#M1114598</guid>
      <dc:creator />
      <dc:date>2014-02-24T07:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622069#M1114599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension&amp;nbsp; Customer&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT([transaction nr.])&lt;/P&gt;&lt;P&gt;Max(Aggr(SUM([Value $]),Agent,Customer))&lt;/P&gt;&lt;P&gt;FirstSortedValue(Agent,Aggr(-SUM([Value $]),Customer,Agent))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 07:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622069#M1114599</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-24T07:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622070#M1114600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks it works great&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 08:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622070#M1114600</guid>
      <dc:creator />
      <dc:date>2014-02-24T08:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622071#M1114601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that my answer help you to solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 08:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622071#M1114601</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-24T08:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622072#M1114602</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;But if not only one Agent has the max sum?&lt;/P&gt;&lt;P&gt;You should use someting like that:&lt;/P&gt;&lt;P&gt;Concat(if (Aggr(Rank(Sum(Value)) = 1, Customer, Agent), Agent), ', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 08:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622072#M1114602</guid>
      <dc:creator>oleg_orlov</dc:creator>
      <dc:date>2014-02-24T08:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Distinct seler per client?</title>
      <link>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622073#M1114603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;As Oleg said... FirstSortedValue will not work in case in Two Agent are having maximum sales.&lt;/P&gt;&lt;P&gt;In this case, use below rank instead of FirstSortedValue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(if (Aggr(Rank(Sum([Value $]),1) = 1, Customer, Agent), Agent), ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 09:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAX-Distinct-seler-per-client/m-p/622073#M1114603</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-24T09:20:57Z</dc:date>
    </item>
  </channel>
</rss>

