<?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: Accumulated Distinct Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166541#M379683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aggr() function sorts its dimensional values by load order by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to ensure that Month is in correct load order (i.e. it must be chronological load order) or you need to use &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 19:17:00 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-03-21T19:17:00Z</dc:date>
    <item>
      <title>Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166532#M379674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to get accumulated distinct count ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Column Count is the result that I need to receive in QlikView. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="COUNT.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127481_COUNT.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distinct Count for period 1 = 5,&lt;/P&gt;&lt;P&gt;Distinct Count for period 1+2 =7&lt;/P&gt;&lt;P&gt;Distinct Count for period 1+2+3 = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 210px;"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 22:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166532#M379674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T22:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166533#M379675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INPUT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Period, Name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,D&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,E&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,F&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,G&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,D&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3,H&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3,A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3,B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3,C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD DISTINCT Period as PeriodAsOF, iterno() as Period&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESIDENT INPUT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHILE IterNo() &amp;lt;= Period;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;PeriodAsOF&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;COUNT(DISTINCT Name)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;8 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;5&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;7&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 23:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166533#M379675</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-09T23:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166534#M379676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to get that result without using script? Using Straight Table for example with set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 23:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166534#M379676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T23:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166535#M379677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script is only preparing the AsOf Table for the Periods (Don't get mislead by the DISTINCT keyword, there are also other approaches to create the same table as shown in the blog post).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe using the AsOf table would be the easiest approach (and the table can also be used for other accumulations, see the examples in the blog post).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you want a front end only solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 00:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166535#M379677</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-10T00:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166536#M379678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think a set analysis solution will really work here, since set analysis is only evaluated once per chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create an expression with a set expression for every period (like emulating the as of table in the front end), but I wouldn't do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your data model, you might be able to make use of the DISTINCTness of the aggr() function, so this might work without a change to your original data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Period&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Count(Aggr(Name,Name))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;8 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;5&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;7&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[full accumulation enabled in the expression settings.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached a sample for both options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 00:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166536#M379678</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-10T00:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166537#M379679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌thanks swuehl. It works. Is there any way not to use 'Full accumulation' and get that result? Cause when I want to sort by Period descending results are no longer correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 11:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166537#M379679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-10T11:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166538#M379680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The AsOf table approach will handle these kind of issues correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 11:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166538#M379680</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-10T11:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166539#M379681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;rangesum(above(sum( aggr( rangesum(&amp;nbsp; count(distinct "Name"))),"Name")),0,RowNo()))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;referenced from: &lt;A href="https://community.qlik.com/message/1022222"&gt;Count Distinct Accumulation in Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to sort your table descending in the load script though and sort your chart descending to get the right numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166539#M379681</guid>
      <dc:creator>mgranillo</dc:creator>
      <dc:date>2016-06-15T16:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166540#M379682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used your useful tip for this issue. I applied it in the following line chart expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(rangesum(above(num(count({&amp;lt;Month={'&amp;lt;=$(=max(Month))'}&amp;gt;}aggr(distinct Name,Name),'#.##0'),0,RowNo()),Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not realise why this expression works well on my local pc, while it changes dramatically when published on the access point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you notice similar issues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 17:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166540#M379682</guid>
      <dc:creator />
      <dc:date>2017-03-21T17:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166541#M379683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aggr() function sorts its dimensional values by load order by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to ensure that Month is in correct load order (i.e. it must be chronological load order) or you need to use &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4673"&gt;The sortable Aggr function is finally here!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 19:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166541#M379683</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-21T19:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accumulated Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166542#M379684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my expression: does not entail Month into the aggr().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;lt;=$(=max(Month))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;lt;=$(=max(Month))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())))&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How would you write it to make it work correctly?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 14:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Accumulated-Distinct-Count/m-p/1166542#M379684</guid>
      <dc:creator />
      <dc:date>2017-03-22T14:09:13Z</dc:date>
    </item>
  </channel>
</rss>

