<?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: Count customers with aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-customers-with-aggr/m-p/531742#M1147301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl, the script works perfect !! I can't understant very well how you calculate 'interval', but all it's ok. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 02:12:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-29T02:12:43Z</dc:date>
    <item>
      <title>Count customers with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-customers-with-aggr/m-p/531740#M1147299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'CustomerData': A table of DATES and CUSTOMERS, each register show the date when a customer made a purchase. Fields Date, Customer.&lt;/P&gt;&lt;P&gt;'Date_Star' : A table with all the dates from CustomerData.Date. Only a field called DateStar&lt;/P&gt;&lt;P&gt;'Date_End' : A table with all the dates from CustomerData.Date. Only a field called DateEnd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user can select a 'DateStar' an a 'DateEnd'. Obviously DateStar &amp;lt;= DateEnd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView must select those registers that the Date is between DateStar and DateEnd, and search if for each customer exist other register at least 30 days. QlikView count how many customers match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;DateStar 04/02/2013 (Feb 04, 2013)&lt;/P&gt;&lt;P&gt;DateEnd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14/02/2013 (Feb 14, 2013)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, this registers are between the dates given:&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Customer&lt;/P&gt;&lt;P&gt;04/02/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2190038&lt;/P&gt;&lt;P&gt;11/02/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2190034&lt;/P&gt;&lt;P&gt;14/02/2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2190031&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And checking the data:&lt;/P&gt;&lt;P&gt;Customer 2190038: previous purshase 06/01/2013. Then 04/02/2013 - 06/01/2013 = 29 days. &amp;lt;-- (Less than 30)&lt;/P&gt;&lt;P&gt;Customer 2190034: previous purshase 30/10/2012. Then 11/02/2013 - 30/10/2012 = 104 days. &amp;lt;-- (Greater than 30)&lt;/P&gt;&lt;P&gt;Customer 2190031: previous purshase 14/01/2013. Then 14/02/2013 - 14/01/2013 = 31 days. &amp;lt;-- (Greater than 30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView response should be: 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Aggr but don't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jul 2013 23:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-customers-with-aggr/m-p/531740#M1147299</guid>
      <dc:creator />
      <dc:date>2013-07-27T23:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-customers-with-aggr/m-p/531741#M1147300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached using a script calculated field for the interval and set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2013 14:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-customers-with-aggr/m-p/531741#M1147300</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-28T14:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers with aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Count-customers-with-aggr/m-p/531742#M1147301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl, the script works perfect !! I can't understant very well how you calculate 'interval', but all it's ok. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 02:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-customers-with-aggr/m-p/531742#M1147301</guid>
      <dc:creator />
      <dc:date>2013-07-29T02:12:43Z</dc:date>
    </item>
  </channel>
</rss>

