<?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: Total row for counting number of active customers by month? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449073#M798895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have QV 12 or above or if you are working with Qlik Sense, you might be able to give this a try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(RangeSum(Above(Active, 0, 3)) = 3, 1, 0), CustomerID,&lt;SPAN style="color: #ff0000;"&gt; (&lt;/SPAN&gt;MonthYear&lt;SPAN style="color: #ff0000;"&gt;, (NUMERIC))&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2017 09:39:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-11T09:39:32Z</dc:date>
    <item>
      <title>Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449069#M798891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a pivot table (screenshot below):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="186179" alt="PivotTable.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186179_PivotTable.PNG" style="height: 69px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Basically "1" &amp;amp; "0" here are for determining the status of the customer: If customer always bought something in every month over the last 3 months (this month, previous month and the month before the previous month), I marked them as Active ("1"). For this purpose, I used the function&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;if(rangesum( before( TOTAL Active,0,3) ) = 3, 1,0)&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For the "Total" row, I wanted to show number of "Active" customer for the month (I supposed it would be just the sum of all rows). I tried using Sum(aggr()) mentioned in this link &lt;A href="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm" title="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm" target="_blank"&gt;Sum of rows in pivot tables ‒ QlikView&lt;/A&gt; but couldn't succeed. My function is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;sum(aggr(if(rangesum( before( TOTAL Active,0,3) ) = 3, 1,0),CustomerID,Month,Year))&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Any help/insight will be really appreciated! Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Henry&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449069#M798891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449070#M798892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I think, the simple solution is calculate "Active" flag in the script. (last three months)&lt;/P&gt;&lt;P&gt;Sample app. int the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 12:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449070#M798892</guid>
      <dc:creator>asgardd2</dc:creator>
      <dc:date>2017-12-08T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449071#M798893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before is a function which is specifically use for Pivot table.... when you use Aggr(), it doesn't work anymore, because Pivot behaves more like a straight table and you have to fall back to above function....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, you have use Month before Year in your Aggr(), I think you might need to switch them because in your chart it seems that you have Year before Month as your dimension order. This matters, because the order of the fields determine the sorting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I would suggest using a field which is a combination of Month and Year instead of Month &amp;amp; Year separately because if you have three fields and you use TOTAL... it will not stop looking above once you reach the end of a customerID... better to not use TOTAL... but then to crossover year, you will have to make sure you use a single MonthYear field....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(RangeSum(&lt;SPAN style="color: #ff0000;"&gt;Above&lt;/SPAN&gt;(Active, 0, 3)) = 3, 1, 0), CustomerID, &lt;SPAN style="color: #ff0000;"&gt;MonthYear&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 12:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449071#M798893</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-08T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449072#M798894</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;Thanks for your replies. I changed the script to load a "MonthYear" field as mentioned (as it's apparently not possible to use a calculated dimension in aggr() function -&amp;nbsp; &lt;A href="https://community.qlikview.com/thread/119882" title="https://community.qlikview.com/thread/119882"&gt;Using a calculated dimension in Aggr() | Qlik Community&lt;/A&gt;), switched the pivot table's layout to make it like a straight table and tried your formula but it did not seem to work. My formula is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Sum(Aggr(If(RangeSum(Above(Active, 0, 3)) = 3, 1, 0), CustomerID, MonthYear))"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula still works for each AccountID &amp;amp; MonthYear if I remove the "Sum(aggr())" part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449072#M798894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-11T06:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449073#M798895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have QV 12 or above or if you are working with Qlik Sense, you might be able to give this a try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(RangeSum(Above(Active, 0, 3)) = 3, 1, 0), CustomerID,&lt;SPAN style="color: #ff0000;"&gt; (&lt;/SPAN&gt;MonthYear&lt;SPAN style="color: #ff0000;"&gt;, (NUMERIC))&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 09:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449073#M798895</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-11T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449074#M798896</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;I am using Qlikview 12. I tried your formula but couldn't succeed. I guess I am left with using script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 01:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449074#M798896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T01:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449075#M798897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to check it out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449075#M798897</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-12T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449076#M798898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the file. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. &lt;SPAN style="font-size: 13.3333px;"&gt;Just wonder if I can group by "CustomerID" first and then load the data into a straight table, the problem would be solved? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 11:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449076#M798898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T11:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449077#M798899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186651_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449077#M798899</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-12T13:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449078#M798900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this. I would prefer to show total number of active users every month. Can you explain to me how you arrived with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 01:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449078#M798900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T01:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449079#M798901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just so I understand, what is that you don't understand? Have you looked at the qvw and don't understand the expression or do you just want to see the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression is this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(RangeSum(Above(If(Sum(Purchases) &amp;gt;= 5, 1, 0), 0, 3)) = 3, 1, 0), Date, CustomerId))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you mentioned seeing all months, do you mean something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186766_Capture.PNG" style="height: 157px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just uncheck 'Suppress zero values' on the presentation tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 09:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449079#M798901</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-13T09:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449080#M798902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Sorry I don't know why but I couldn't open any .qvw file (the same for Anton's file) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;. As far as I know your latest formula will be based on condition: &lt;STRONG&gt;sum of purchases over the last 3 months &amp;gt;= 5 or not&lt;/STRONG&gt;. My condition is actually: &lt;STRONG&gt;sum of purchases in each month over the last 3 months&amp;nbsp; &amp;gt;= 5&lt;/STRONG&gt; (Sorry again for not being clear). From this condition, you can see for the first 2 months (Jan-15 &amp;amp; Feb-15), as we don't have 3 months data there should not be any "Active" customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 09:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449080#M798902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T09:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449081#M798903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(RangeSum(Above(If(Sum(Purchases) &amp;gt;= 5, 1, 0), 0, 3)) = 3, 1, 0), CustomerId, Date))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186779_Capture.PNG" style="height: 167px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 09:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449081#M798903</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-13T09:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449082#M798904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula works. Thanks a lot! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 11:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449082#M798904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T11:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449083#M798905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi Sunny,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I just checked with my source data again and apparently there was a problem: Using the formula mentioned above &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;“&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; background: #EDF8CA; font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;Sum(Aggr(If(RangeSum(Above(If(Sum(Purchases) &amp;gt;= 5, 1, 0), 0, 3)) = 3, 1, 0), CustomerId, Date))”&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;will ignore the month if the customer did not have any data for e.g. we are looking at Jun-16 and if customer A did not have any data in May, the formula will look at data in Jun, Apr &amp;amp; Mar. If these 3 months satisfy the condition, customer A will still be marked as “Active”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Henry&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 03:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449083#M798905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T03:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Total row for counting number of active customers by month?</title>
      <link>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449084#M798906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt; approach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD Date, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerId, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Purchases&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;[Sample1.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;AsOfTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Left Keep (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD DISTINCT Date as AsOfDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; AddMonths(Date, -IterNo() + 1) as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; -IterNo() + 1 as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;While IterNo() &amp;lt;= 3;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AsOfDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CustomerId&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(Sum(Aggr(If(Sum(Purchases) &amp;gt; 5, 1, 0), AsOfDate, Date, CustomerId)) = 3, 1, 0), AsOfDate, CustomerId))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 12:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-row-for-counting-number-of-active-customers-by-month/m-p/1449084#M798906</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-14T12:27:14Z</dc:date>
    </item>
  </channel>
</rss>

