<?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 Cumulative count of distinct values in a pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1885682#M72952</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a requirement to display the Year-to-date sum of unique customers per month and year in a pivot table.&lt;/P&gt;
&lt;P&gt;Sample data is provided below:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" style="height: 14.5pt; width: 48pt;"&gt;Year&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Month&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Jan&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Jan&lt;/TD&gt;
&lt;TD&gt;DEF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;GHI&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;JKL&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;DEF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;GHI&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Required format :&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 624pt;" border="0" width="832" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" style="height: 14.5pt; width: 48pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD colspan="6" width="384" class="xl69" style="border-right: .5pt solid black; width: 288pt;"&gt;P1&lt;/TD&gt;
&lt;TD colspan="6" width="384" class="xl69" style="border-right: .5pt solid black; border-left: none; width: 288pt;"&gt;P2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl68" style="height: 14.5pt;"&gt;Number&lt;/TD&gt;
&lt;TD class="xl65"&gt;Jan YTD&lt;/TD&gt;
&lt;TD class="xl66"&gt;Feb&lt;/TD&gt;
&lt;TD class="xl66"&gt;Mar&lt;/TD&gt;
&lt;TD class="xl66"&gt;Apr&lt;/TD&gt;
&lt;TD class="xl66"&gt;May&lt;/TD&gt;
&lt;TD class="xl67"&gt;Jun&lt;/TD&gt;
&lt;TD class="xl65" style="border-left: none;"&gt;Jul&lt;/TD&gt;
&lt;TD class="xl66"&gt;Aug&lt;/TD&gt;
&lt;TD class="xl66"&gt;Sep&lt;/TD&gt;
&lt;TD class="xl66"&gt;Oct&lt;/TD&gt;
&lt;TD class="xl66"&gt;Nov&lt;/TD&gt;
&lt;TD class="xl67"&gt;Dec&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD align="right" class="xl72"&gt;2&lt;/TD&gt;
&lt;TD align="right" class="xl72"&gt;4&lt;/TD&gt;
&lt;TD align="right" class="xl72"&gt;4&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2020&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please advice on how to achieve this request.&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 14:05:03 GMT</pubDate>
    <dc:creator>Haarika</dc:creator>
    <dc:date>2022-02-02T14:05:03Z</dc:date>
    <item>
      <title>Cumulative count of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1885682#M72952</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a requirement to display the Year-to-date sum of unique customers per month and year in a pivot table.&lt;/P&gt;
&lt;P&gt;Sample data is provided below:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" style="height: 14.5pt; width: 48pt;"&gt;Year&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Month&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Jan&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Jan&lt;/TD&gt;
&lt;TD&gt;DEF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;GHI&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;JKL&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;DEF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;GHI&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Required format :&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 624pt;" border="0" width="832" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" style="height: 14.5pt; width: 48pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD colspan="6" width="384" class="xl69" style="border-right: .5pt solid black; width: 288pt;"&gt;P1&lt;/TD&gt;
&lt;TD colspan="6" width="384" class="xl69" style="border-right: .5pt solid black; border-left: none; width: 288pt;"&gt;P2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl68" style="height: 14.5pt;"&gt;Number&lt;/TD&gt;
&lt;TD class="xl65"&gt;Jan YTD&lt;/TD&gt;
&lt;TD class="xl66"&gt;Feb&lt;/TD&gt;
&lt;TD class="xl66"&gt;Mar&lt;/TD&gt;
&lt;TD class="xl66"&gt;Apr&lt;/TD&gt;
&lt;TD class="xl66"&gt;May&lt;/TD&gt;
&lt;TD class="xl67"&gt;Jun&lt;/TD&gt;
&lt;TD class="xl65" style="border-left: none;"&gt;Jul&lt;/TD&gt;
&lt;TD class="xl66"&gt;Aug&lt;/TD&gt;
&lt;TD class="xl66"&gt;Sep&lt;/TD&gt;
&lt;TD class="xl66"&gt;Oct&lt;/TD&gt;
&lt;TD class="xl66"&gt;Nov&lt;/TD&gt;
&lt;TD class="xl67"&gt;Dec&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2021&lt;/TD&gt;
&lt;TD align="right" class="xl72"&gt;2&lt;/TD&gt;
&lt;TD align="right" class="xl72"&gt;4&lt;/TD&gt;
&lt;TD align="right" class="xl72"&gt;4&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2020&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please advice on how to achieve this request.&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 14:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1885682#M72952</guid>
      <dc:creator>Haarika</dc:creator>
      <dc:date>2022-02-02T14:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1885906#M72968</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;may be this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;aggr(&lt;BR /&gt;rangesum(above(count(Name),0,rowno())),Year,Month)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 09:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1885906#M72968</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-01-27T09:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887195#M73113</link>
      <description>&lt;P&gt;Hi, thank you for your response.&lt;/P&gt;
&lt;P&gt;this expression simply adds up the above values without removing the duplicates.&lt;/P&gt;
&lt;P&gt;Could you please advise on how we can &lt;STRONG&gt;&lt;EM&gt;display the cumulative count of unique names per month&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Many thanks again !&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887195#M73113</guid>
      <dc:creator>Haarika</dc:creator>
      <dc:date>2022-01-31T16:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887208#M73116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try with distinct :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;aggr(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rangesum(above(count( distinct Name),0,rowno())),Year,Month)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 16:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887208#M73116</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-01-31T16:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887210#M73117</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This doesnt work either ! any other approach ?&lt;/P&gt;
&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 17:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887210#M73117</guid>
      <dc:creator>Haarika</dc:creator>
      <dc:date>2022-01-31T17:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887224#M73120</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you provide a sample data as the exemple above but where duplicate name are present&lt;/P&gt;
&lt;P&gt;and explain the desired output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for exemple Jan = count ABC + DEF etc&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 17:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887224#M73120</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-01-31T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887227#M73121</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;sample data:&lt;/P&gt;
&lt;TABLE border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64" height="19"&gt;Year&lt;/TD&gt;
&lt;TD width="64"&gt;Month&lt;/TD&gt;
&lt;TD width="64"&gt;Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19" align="right"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Jan&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19" align="right"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Jan&lt;/TD&gt;
&lt;TD&gt;DEF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19" align="right"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;GHI&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19" align="right"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;JKL&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19" align="right"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Feb&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19" align="right"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;ABC&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19" align="right"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;DEF&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="19" align="right"&gt;2021&lt;/TD&gt;
&lt;TD&gt;Mar&lt;/TD&gt;
&lt;TD&gt;GHI&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Desired output:&lt;/P&gt;
&lt;P&gt;YTD Jan - &lt;STRONG&gt;2&lt;/STRONG&gt; (ABC + DEF)&lt;/P&gt;
&lt;P&gt;YTD Feb -&lt;STRONG&gt; 4&lt;/STRONG&gt; (ABC + DEF + GHI + JKL) &lt;STRONG&gt;&lt;EM&gt;Note : ABC in Feb data needs to be omitted since it has been counted in Jan&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;YTD Mar - &lt;STRONG&gt;4&lt;/STRONG&gt;&amp;nbsp;(ABC + DEF + GHI + JKL)&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Note : ABC, DEF, GHI in Mar data needs to be omitted since it has been counted in Jan, Feb&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Hope this helps !&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Thank you&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 17:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887227#M73121</guid>
      <dc:creator>Haarika</dc:creator>
      <dc:date>2022-01-31T17:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887528#M73137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK i think in that case rangesum(above( is not the good approach in your case&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here a scrit to test :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Table]:&lt;/P&gt;
&lt;P&gt;load &lt;BR /&gt;*,&lt;/P&gt;
&lt;P&gt;num(month(date#([Month],'MMM'))) as Num_Month;&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;[&lt;BR /&gt;Year,Month,Name&lt;BR /&gt;2021,Jan,ABC&lt;BR /&gt;2021,Jan,DEF&lt;BR /&gt;2021,Feb,GHI&lt;BR /&gt;2021,Feb,JKL&lt;BR /&gt;2021,Feb,ABC&lt;BR /&gt;2021,Mar,ABC&lt;BR /&gt;2021,Mar,DEF&lt;BR /&gt;2021,Mar,GHI&lt;BR /&gt;](delimiter is ',');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;final:&lt;BR /&gt;load&lt;BR /&gt;distinct Num_Month as AsofMonth,&lt;BR /&gt;iterno() as Num_Month&lt;BR /&gt;resident Table&lt;BR /&gt;while iterno() &amp;lt;=Num_Month;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;straight table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_0-1643714418801.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71342i121E6A6480262E4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_0-1643714418801.png" alt="brunobertels_0-1643714418801.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;crosstable :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_1-1643714441591.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71343iAA9A39C8380C08C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_1-1643714441591.png" alt="brunobertels_1-1643714441591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see this post also for the asoftable approach :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Accumulated-Distinct-Count/td-p/1166532" target="_self"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Accumulated-Distinct-Count/td-p/1166532&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope it helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 11:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1887528#M73137</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-02-01T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1888174#M73186</link>
      <description>&lt;P&gt;fantastic... this solution works... thanks a ton for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 14:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1888174#M73186</guid>
      <dc:creator>Haarika</dc:creator>
      <dc:date>2022-02-02T14:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1894051#M73738</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48554"&gt;@brunobertels&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This is to let you know that, using the AsofTable concept I was able to derive the cumulative distinct count of customers per month. Further to this, I am asked to display the cumulative distinct count of customers per number of interactions per month as given below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Haarika_0-1645067999563.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72489i10FB5C801ECBDA80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Haarika_0-1645067999563.png" alt="Haarika_0-1645067999563.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The issue being faced is with the customers (&lt;STRONG&gt;D, H &amp;amp; M&lt;/STRONG&gt;) who have different number of interactions each month as shown below. Please note: number of interactions is precalculated in the data model&lt;/P&gt;
&lt;TABLE width="293"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="67"&gt;Name&lt;/TD&gt;
&lt;TD width="98"&gt;Num_Month&lt;/TD&gt;
&lt;TD width="128"&gt;No. of Interactions&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&g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;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Desired output should be&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE width="270"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;Name&lt;/TD&gt;
&lt;TD width="85"&gt;Num_Month&lt;/TD&gt;
&lt;TD width="121"&gt;No. of Interactions&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;2021 Jan&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;2021 Feb&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;H&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;2021 Feb&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;I&lt;/TD&gt;
&lt;TD&gt;2021 Feb&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;L&lt;/TD&gt;
&lt;TD&gt;2021 Feb&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;2021 Feb&lt;/STRON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&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;N&lt;/TD&gt;
&lt;TD&gt;2021 Mar&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;O&lt;/TD&gt;
&lt;TD&gt;2021 Mar&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;P&lt;/TD&gt;
&lt;TD&gt;2021 Mar&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please advice a solution for this requirement?&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;Haarika&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 03:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1894051#M73738</guid>
      <dc:creator>Haarika</dc:creator>
      <dc:date>2022-02-17T03:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1894224#M73759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Table]:&lt;BR /&gt;load &lt;BR /&gt;*,&lt;/P&gt;
&lt;P&gt;num(month(date#([Num_Month],'YYYY MMM'))) as Num_Month1;&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;[&lt;BR /&gt;Name,Num_Month,No. of Interactions&lt;BR /&gt;A,2021 Jan,2&lt;BR /&gt;D,2021 Feb,2&lt;BR /&gt;H,2021 Feb,1&lt;BR /&gt;I,2021 Feb,1&lt;BR /&gt;L,2021 Feb,1&lt;BR /&gt;M,2021 Feb,1&lt;BR /&gt;B,2021 Mar,1&lt;BR /&gt;C,2021 Mar,1&lt;BR /&gt;D,2021 Mar,3&lt;BR /&gt;G,2021 Mar,1&lt;BR /&gt;H,2021 Mar,1&lt;BR /&gt;J,2021 Mar,2&lt;BR /&gt;K,2021 Mar,1&lt;BR /&gt;M,2021 Mar,2&lt;BR /&gt;N,2021 Mar,1&lt;BR /&gt;O,2021 Mar,2&lt;BR /&gt;P,2021 Mar,1&lt;BR /&gt;](delimiter is ',');&lt;/P&gt;
&lt;P&gt;resulting table :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use Name and&amp;nbsp; Num_Month as Dimensions&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then as mesure :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;aggr(rangesum(above(sum([No. of Interactions]),0,rowno())),Name,Num_Month1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Where Num_Month1 =&amp;nbsp;num(month(date#([Num_Month],'YYYY MMM'))) as Num_Month1 added in script as a preceding load statement in my case&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_0-1645094684026.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72517iD8103777084FCC04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_0-1645094684026.png" alt="brunobertels_0-1645094684026.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 10:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1894224#M73759</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-02-17T10:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1894593#M73801</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48554"&gt;@brunobertels&lt;/a&gt;&amp;nbsp;for sharing this solution.&lt;/P&gt;
&lt;P&gt;In addition to the above, I assigned frequency values i.e.&lt;STRONG&gt;1,2,3,4, &amp;gt;=5&amp;nbsp;&lt;/STRONG&gt;based on the cumulative interactions per account per month&lt;STRONG&gt;. &lt;/STRONG&gt;Please refer to sample data set.&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="413px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;Account Name&lt;/TD&gt;
&lt;TD width="144.698px"&gt;Num_Month&lt;/TD&gt;
&lt;TD width="133.708px"&gt;Frequency&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;A&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Jan&lt;/TD&gt;
&lt;TD width="133.708px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="144.698px"&gt;&lt;STRONG&gt;2021 Feb&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="133.708px"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;&lt;STRONG&gt;H&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="144.698px"&gt;&lt;STRONG&gt;2021 Feb&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="133.708px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;B&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Feb&lt;/TD&gt;
&lt;TD width="133.708px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;C&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Feb&lt;/TD&gt;
&lt;TD width="133.708px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="144.698px"&gt;&lt;STRONG&gt;2021 Feb&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="133.708px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;E&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Mar&lt;/TD&gt;
&lt;TD width="133.708px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;F&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Mar&lt;/TD&gt;
&lt;TD width="133.708px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="144.698px"&gt;&lt;STRONG&gt;2021 Mar&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="133.708px"&gt;&lt;STRONG&gt;&amp;gt;= 5&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;G&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Mar&lt;/TD&gt;
&lt;TD width="133.708px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;&lt;STRONG&gt;H&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="144.698px"&gt;&lt;STRONG&gt;2021 Mar&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="133.708px"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;I&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Mar&lt;/TD&gt;
&lt;TD width="133.708px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;J&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Mar&lt;/TD&gt;
&lt;TD width="133.708px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="144.698px"&gt;&lt;STRONG&gt;2021 Mar&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="133.708px"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;K&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Mar&lt;/TD&gt;
&lt;TD width="133.708px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;L&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Mar&lt;/TD&gt;
&lt;TD width="133.708px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="133.594px"&gt;N&lt;/TD&gt;
&lt;TD width="144.698px"&gt;2021 Mar&lt;/TD&gt;
&lt;TD width="133.708px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Now the requirement is to display the &lt;STRONG&gt;cumulative distinct count of accounts per frequency per month&lt;/STRONG&gt; as shown below.&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" class="xl65" style="height: 14.5pt; width: 48pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="64" class="xl69" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Jan&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" class="xl69" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Feb&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" class="xl69" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Mar&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="64" class="xl69" style="border-left: none; width: 48pt;"&gt;&lt;STRONG&gt;Apr&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" class="xl69" style="height: 14.5pt; border-top: none;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" class="xl69" style="height: 14.5pt; border-top: none;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" class="xl69" style="height: 14.5pt; border-top: none;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" class="xl69" style="height: 14.5pt; border-top: none;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl69" style="height: 14.5pt; border-top: none;"&gt;&lt;STRONG&gt;&amp;gt;=5&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;As per the sample data, Accounts &lt;STRONG&gt;D, H &amp;amp; M are available in both Feb and Mar. &lt;/STRONG&gt;While using the Asoftable accumulation method,&lt;STRONG&gt; in March Account D is counted twice i.e in Freq 2 (as in Feb) and Freq &amp;gt;=5 (as in Mar). LIkewise for H &amp;amp; M too.&lt;/STRONG&gt; Therefore, I need a solution that would display the cumulative distinct count of accounts based on their latest frequency for each month?&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;Haarika&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 02:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1894593#M73801</guid>
      <dc:creator>Haarika</dc:creator>
      <dc:date>2022-02-18T02:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum of distinct values in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1894797#M73813</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'am afraid your requierment is beyond my knowledges.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nether the less try this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;based on my last inline load testing above :&lt;/P&gt;
&lt;P&gt;[Table]:&lt;BR /&gt;load&lt;BR /&gt;*,&lt;/P&gt;
&lt;P&gt;num(month(date#([Num_Month],'YYYY MMM'))) as Num_Month1;&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[&lt;BR /&gt;Name,Num_Month,No. of Interactions&lt;BR /&gt;A,2021 Jan,2&lt;BR /&gt;D,2021 Feb,2&lt;BR /&gt;H,2021 Feb,1&lt;BR /&gt;I,2021 Feb,1&lt;BR /&gt;L,2021 Feb,1&lt;BR /&gt;M,2021 Feb,1&lt;BR /&gt;B,2021 Mar,1&lt;BR /&gt;C,2021 Mar,1&lt;BR /&gt;D,2021 Mar,3&lt;BR /&gt;G,2021 Mar,1&lt;BR /&gt;H,2021 Mar,1&lt;BR /&gt;J,2021 Mar,2&lt;BR /&gt;K,2021 Mar,1&lt;BR /&gt;M,2021 Mar,2&lt;BR /&gt;N,2021 Mar,1&lt;BR /&gt;O,2021 Mar,2&lt;BR /&gt;P,2021 Mar,1&lt;BR /&gt;](delimiter is ',');&lt;/P&gt;
&lt;P&gt;I created a cross table with :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Frequency Line dimension like this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(if(&lt;BR /&gt;max(aggr(rangesum(above(sum([No. of Interactions]),0,rowno())),Name,Num_Month1))=1,&lt;BR /&gt;1,&lt;BR /&gt;if(&lt;BR /&gt;max(aggr(rangesum(above(sum([No. of Interactions]),0,rowno())),Name,Num_Month1))=2,&lt;BR /&gt;2,&lt;BR /&gt;if(&lt;BR /&gt;max(aggr(rangesum(above(sum([No. of Interactions]),0,rowno())),Name,Num_Month1))=3,&lt;BR /&gt;3,&lt;BR /&gt;if(&lt;BR /&gt;max(aggr(rangesum(above(sum([No. of Interactions]),0,rowno())),Name,Num_Month1))=4,&lt;BR /&gt;4,&lt;BR /&gt;if(&lt;BR /&gt;max(aggr(rangesum(above(sum([No. of Interactions]),0,rowno())),Name,Num_Month1))&amp;gt;=5,&lt;BR /&gt;'&amp;gt;5'))))),Num_Month,Name)&lt;/P&gt;
&lt;P&gt;Month column dimension with Num_Month field&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then as mesure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count(Name)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;resulting Table :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_0-1645184000293.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72623i2DBE37A65E64DDD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_0-1645184000293.png" alt="brunobertels_0-1645184000293.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to work without selection , but when you select a Name ( M for example ) i have this :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_1-1645184072789.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72624i7B1D65018FE03256/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_1-1645184072789.png" alt="brunobertels_1-1645184072789.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So not sure it is the behaviour you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry not to be able to help you more for this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 11:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-count-of-distinct-values-in-a-pivot-table/m-p/1894797#M73813</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2022-02-18T11:35:28Z</dc:date>
    </item>
  </channel>
</rss>

