<?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: How to get Repeat customers and new Customers ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-get-Repeat-customers-and-new-Customers/m-p/1087046#M18117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat Customer&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Customer = {"=Count({&amp;lt;Date = {'&amp;lt;=$(=Date(Max(Date)))'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Transaction_id&lt;/SPAN&gt;) &amp;gt; 1"}&amp;gt;} Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Customer&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count(DISTINCT {&amp;lt;Customer = {"=Count({&amp;lt;Date = {'&amp;lt;=$(=Date(Max(Date)))'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Transaction_id&lt;/SPAN&gt;) = 1"}&amp;gt;} Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2016 15:31:58 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-06T15:31:58Z</dc:date>
    <item>
      <title>How to get Repeat customers and new Customers ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-Repeat-customers-and-new-Customers/m-p/1087045#M18116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Cust_id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Transaction_id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Amount&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;231&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11/01/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;003&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2342&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/01/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20/01/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Cust_id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Cust_Name&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;gaurav&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Anil&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jack&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;David&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the above two tables are linked with Cust_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and these tables have data for 1 year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the logic for Repeat and New Customer is,&lt;/P&gt;&lt;P&gt;Customer how has more than 1 transaction is the Repeat Customer (Transaction_id &amp;gt;1).&lt;/P&gt;&lt;P&gt;Customer who has only 1 transaction is a new customer (Transaction_id=1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the selected date i want the number of New Customer and Number of Repeat Customers&lt;/P&gt;&lt;P&gt;I also want which are the&amp;nbsp; Customer&amp;nbsp; Name in a table which are new and Repeat Customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically i want count of New and Repeat Customers in KPI&lt;/P&gt;&lt;P&gt;and their details in the Report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me ?&lt;/P&gt;&lt;P&gt;Can we do this by Aggr() function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 05:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-Repeat-customers-and-new-Customers/m-p/1087045#M18116</guid>
      <dc:creator>gauravgg</dc:creator>
      <dc:date>2016-05-06T05:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Repeat customers and new Customers ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-Repeat-customers-and-new-Customers/m-p/1087046#M18117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat Customer&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Customer = {"=Count({&amp;lt;Date = {'&amp;lt;=$(=Date(Max(Date)))'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Transaction_id&lt;/SPAN&gt;) &amp;gt; 1"}&amp;gt;} Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Customer&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count(DISTINCT {&amp;lt;Customer = {"=Count({&amp;lt;Date = {'&amp;lt;=$(=Date(Max(Date)))'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Transaction_id&lt;/SPAN&gt;) = 1"}&amp;gt;} Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 15:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-Repeat-customers-and-new-Customers/m-p/1087046#M18117</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-06T15:31:58Z</dc:date>
    </item>
  </channel>
</rss>

