<?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 Max of a Count Distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-of-a-Count-Distinct/m-p/153697#M30639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my data we have transactions by customer Id.&lt;/P&gt;&lt;P&gt;I can do a count(Distinct custid) to find out how many unique customers i had over a period.&lt;/P&gt;&lt;P&gt;I can do count(distinct transId) to find out how many transactions i had over a period&lt;/P&gt;&lt;P&gt;What i would like to do now if to find what was the highest transaction count for the selected period by customer.&lt;/P&gt;&lt;P&gt;I don't need the customer itself, just the highest value.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2011 14:14:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-10T14:14:02Z</dc:date>
    <item>
      <title>Max of a Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-Count-Distinct/m-p/153697#M30639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my data we have transactions by customer Id.&lt;/P&gt;&lt;P&gt;I can do a count(Distinct custid) to find out how many unique customers i had over a period.&lt;/P&gt;&lt;P&gt;I can do count(distinct transId) to find out how many transactions i had over a period&lt;/P&gt;&lt;P&gt;What i would like to do now if to find what was the highest transaction count for the selected period by customer.&lt;/P&gt;&lt;P&gt;I don't need the customer itself, just the highest value.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 14:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-Count-Distinct/m-p/153697#M30639</guid>
      <dc:creator />
      <dc:date>2011-03-10T14:14:02Z</dc:date>
    </item>
    <item>
      <title>Max of a Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-Count-Distinct/m-p/153698#M30640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Max&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to do it ....&lt;/P&gt;(&lt;B&gt;Aggr&lt;/B&gt;(&lt;B&gt;Count&lt;/B&gt;(&lt;B&gt;Distinct&lt;/B&gt; &lt;B&gt;[Trans Id]&lt;/B&gt;), &lt;B&gt;[MailCount]&lt;/B&gt;)) &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 14:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-Count-Distinct/m-p/153698#M30640</guid>
      <dc:creator />
      <dc:date>2011-03-10T14:19:24Z</dc:date>
    </item>
    <item>
      <title>Max of a Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Max-of-a-Count-Distinct/m-p/153699#M30641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Harry,&lt;BR /&gt;From your description, it should be aggregated by customer:&lt;BR /&gt;max(aggr(count(distinct transid),&lt;STRONG&gt;custid&lt;/STRONG&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 14:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-of-a-Count-Distinct/m-p/153699#M30641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-10T14:48:16Z</dc:date>
    </item>
  </channel>
</rss>

