<?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: Calculate new customers on front end in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259701#M871304</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;at backend you can simply calculate a flag for custid like in which month the customer is new.. once that is done then use the flag and date range in set analysis to get the desired count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 11:17:08 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2016-11-16T11:17:08Z</dc:date>
    <item>
      <title>Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259700#M871303</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 need to count no. of new customers i.e the customers that came to me for the first time ever, with respect to year and month.&lt;/P&gt;&lt;P&gt;This could be done in script easily but due to some business restrictions (need to calculate new customers with respect to current selections of Brand, Supplier etc.) I need to do this on the &lt;STRONG&gt;front end. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Attached is a subset of the data. Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&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/Calculate-new-customers-on-front-end/m-p/1259700#M871303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259701#M871304</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;at backend you can simply calculate a flag for custid like in which month the customer is new.. once that is done then use the flag and date range in set analysis to get the desired count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259701#M871304</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2016-11-16T11:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259702#M871305</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;It can be acieved at front end using below expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(Distinct{&amp;lt;[Customer Id] = {"=count(Distinct Date)=1"}&amp;gt;}[Customer Id])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Its like count of Distinct &lt;STRONG style="font-size: 13.3333px;"&gt;[Customer Id],&amp;nbsp; &lt;/STRONG&gt;against which there exists a single distinct &lt;STRONG style="font-size: 13.3333px;"&gt;Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srashti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259702#M871305</guid>
      <dc:creator />
      <dc:date>2016-11-16T11:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259703#M871306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wrvs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the expected output ? What do you mean by "first time ever" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259703#M871306</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-11-16T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259704#M871307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't do it in script. Need to do it on front end because the definition of a new customer changes dynamically.&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;If the user selects brand (not present in the dataset I provided), then he would see all customers that bought that brand for the first time.&lt;/P&gt;&lt;P&gt;If the user selects item, &lt;SPAN style="font-size: 13.3333px;"&gt;then he would see all customers that bought that Item for the first time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Similarly, there are numerous dimensions and their combination:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Eg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Brand B1 has three itsm I1,I2,I3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;A customer bought I1 and I2 for the first time in Jan and bought I3 in Feb. Now if I select this brand through a list box, I will count the customer as new in Jan only. But if I select I3 then he would be new in Feb not Jan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you get the logic &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259704#M871307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259705#M871308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A customers who shopped for the first time in Feb 2016 but also in Apr 2016. So he would be counted as new customer in Feb but not in Apr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259705#M871308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T11:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259706#M871309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This did not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259706#M871309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T11:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259707#M871310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;What you need, is Cohort analyse. See below some examples&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="https://community.qlikview.com/thread/212405" title="https://community.qlikview.com/thread/212405"&gt;https://community.qlikview.com/thread/212405&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/212175" title="https://community.qlik.com/thread/212175"&gt;https://community.qlik.com/thread/212175&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Eliza&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 12:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259707#M871310</guid>
      <dc:creator>ElizaF</dc:creator>
      <dc:date>2016-11-16T12:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259708#M871311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this below expression,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;Month={'1'}&amp;gt;}[Customer Id])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 12:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259708#M871311</guid>
      <dc:creator>susovan</dc:creator>
      <dc:date>2016-11-16T12:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new customers on front end</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259709#M871312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a monthserial in script like this&lt;/P&gt;&lt;P&gt;(Year*12)+Month as MonthSerial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I made a table with dimension as Month Serial and Measure as below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;min(MonthSerial),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Customer Id]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this output.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149277_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When I did cohort in Scrip I got this output.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/149278_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is a difference of 1 customer in Month 24193 but rest of the data matches.&lt;/P&gt;&lt;P&gt;It will also work on selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please let me know if output is correct.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 13:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-new-customers-on-front-end/m-p/1259709#M871312</guid>
      <dc:creator>shubham_singh</dc:creator>
      <dc:date>2017-01-12T13:34:28Z</dc:date>
    </item>
  </channel>
</rss>

