<?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 count across a single dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730429#M721854</link>
    <description>&lt;P&gt;I've tried that and it doesn't work.&lt;/P&gt;&lt;P&gt;Max(total aggr(&lt;STRONG&gt;Count(distinct MemberID)&lt;/STRONG&gt;, Org)) gives me:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Org&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;MemberCount&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;MaxMemberCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;15&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;B&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;35&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;24&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TOTAL seems to be totaling the aggregation before I take the Max...&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2020 20:30:00 GMT</pubDate>
    <dc:creator>McLaughlinMatt</dc:creator>
    <dc:date>2020-07-23T20:30:00Z</dc:date>
    <item>
      <title>Max count across a single dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730418#M721852</link>
      <description>&lt;P&gt;This is driving me crazy. I have a straight table with&amp;nbsp; Orgs as the dimension and Count(Distinct MemberID) as the first expression:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Org&lt;/TD&gt;&lt;TD width="50%"&gt;MemberCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;A&lt;/TD&gt;&lt;TD width="50%"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;B&lt;/TD&gt;&lt;TD width="50%"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;C&lt;/TD&gt;&lt;TD width="50%"&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is another column for the Max MemberCount across the whole table like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Org&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;MemberCount&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;MaxMemberCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;15&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;B&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;35&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;24&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems like it should be incredibly simple but it's defeated me for hours.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730418#M721852</guid>
      <dc:creator>McLaughlinMatt</dc:creator>
      <dc:date>2024-11-16T18:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Max count across a single dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730424#M721853</link>
      <description>&lt;P&gt;If Member count is direct field you can use below&lt;/P&gt;&lt;P&gt;Max(total MemberCount)&lt;/P&gt;&lt;P&gt;If Member count is your expression then use below&lt;/P&gt;&lt;P&gt;Max(total aggr(&lt;STRONG&gt;Count(distinct MembeID)&lt;/STRONG&gt;, Org)) ----&amp;gt; Assuming&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Count(distinct MembeID)&amp;nbsp;&lt;/STRONG&gt; is MemberCount expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 20:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730424#M721853</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-23T20:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Max count across a single dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730429#M721854</link>
      <description>&lt;P&gt;I've tried that and it doesn't work.&lt;/P&gt;&lt;P&gt;Max(total aggr(&lt;STRONG&gt;Count(distinct MemberID)&lt;/STRONG&gt;, Org)) gives me:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Org&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;MemberCount&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;MaxMemberCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;A&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;15&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;B&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;35&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;C&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;24&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;74&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TOTAL seems to be totaling the aggregation before I take the Max...&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 20:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730429#M721854</guid>
      <dc:creator>McLaughlinMatt</dc:creator>
      <dc:date>2020-07-23T20:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Max count across a single dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730431#M721855</link>
      <description>&lt;P&gt;OK. I figured out what's happening. There are memberIDs with NULL in the Org field due to a wonky join. So I wasn't seeing them in the dimension. Need to fix the join and then it will work as promised.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 20:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730431#M721855</guid>
      <dc:creator>McLaughlinMatt</dc:creator>
      <dc:date>2020-07-23T20:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Max count across a single dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730433#M721856</link>
      <description>&lt;P&gt;What is the membercount expression? I have assumed the expression. You can use your actual expression It will work&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 20:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730433#M721856</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-23T20:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Max count across a single dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730436#M721857</link>
      <description>&lt;P&gt;This is what worked because it handled the null case correctly. NOTE the minus equals&lt;/P&gt;&lt;P&gt;Max(total aggr(Count(&lt;STRONG&gt;{$&amp;lt;Org-={'*'}&amp;gt;}&lt;/STRONG&gt;distinct MemberID), Org))&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 20:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730436#M721857</guid>
      <dc:creator>McLaughlinMatt</dc:creator>
      <dc:date>2020-07-23T20:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Max count across a single dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730438#M721858</link>
      <description>&lt;P&gt;You don't need that. You can use suppress null value option if Org is null for Member IDs.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 20:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730438#M721858</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-23T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Max count across a single dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730449#M721859</link>
      <description>&lt;P&gt;If you have NULL values then you need to use which you are using or blow&lt;/P&gt;&lt;P&gt;max(total aggr(Count({1-$&amp;lt;Org={'*'}&amp;gt;}ID),Org))&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 21:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-count-across-a-single-dimension/m-p/1730449#M721859</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-23T21:10:01Z</dc:date>
    </item>
  </channel>
</rss>

