<?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: Active Customers in Date Range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412798#M485213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, sorry I can't add the qvw. Would the expression be different if I wanted it dynamic? Couldn't I just replace the constant with a variable? Do you know what the expression would be if I wanted it as, say, 365 days...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2013 09:34:13 GMT</pubDate>
    <dc:creator>johnso2080</dc:creator>
    <dc:date>2013-04-30T09:34:13Z</dc:date>
    <item>
      <title>Active Customers in Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412796#M485211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table of orders and fields 'order date','order reference','customer id'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need an expression that gives me how many distinct customers (customer id's) have placed an order each day (order date), but have also placed at least one order in the past x number of days...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 09:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412796#M485211</guid>
      <dc:creator>johnso2080</dc:creator>
      <dc:date>2013-04-30T09:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Active Customers in Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412797#M485212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darrn&lt;/P&gt;&lt;P&gt;Do you want the x number of days to be dynamic?&lt;/P&gt;&lt;P&gt;Anyway, If you could attach your qvw file it will be easier to assist you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 09:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412797#M485212</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-04-30T09:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Active Customers in Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412798#M485213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, sorry I can't add the qvw. Would the expression be different if I wanted it dynamic? Couldn't I just replace the constant with a variable? Do you know what the expression would be if I wanted it as, say, 365 days...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 09:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412798#M485213</guid>
      <dc:creator>johnso2080</dc:creator>
      <dc:date>2013-04-30T09:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Active Customers in Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412799#M485214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestion is to add a flag to each customer identifying that he has placed an order&lt;/P&gt;&lt;P&gt;in the last x days. This will be in the script level.&lt;/P&gt;&lt;P&gt;Lets call it: CustomerPlacedOrderFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add a simple expression:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;CustomerPlacedOrderFlag = {{'1'}}&amp;gt;} Distinct Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helped&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ori&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 10:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412799#M485214</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-04-30T10:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Active Customers in Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412800#M485216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ori, I'm not entirely sure how I would build that in to the script? Is there no way of making it dynamic if I needed to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a very brief example and a description of what I want to achieve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it makes sense...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 12:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412800#M485216</guid>
      <dc:creator>johnso2080</dc:creator>
      <dc:date>2013-04-30T12:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Active Customers in Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412801#M485218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can make it only in the script, Unfortunately it will not be dynamic )-:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412801#M485218</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-04-30T13:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Active Customers in Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412802#M485220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant, thank you very much for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412802#M485220</guid>
      <dc:creator>johnso2080</dc:creator>
      <dc:date>2013-04-30T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Active Customers in Date Range</title>
      <link>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412803#M485223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your welcome (-:&lt;/P&gt;&lt;P&gt;Just mark as "Correct Answer" so other people could enjoy from this answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ori&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Active-Customers-in-Date-Range/m-p/412803#M485223</guid>
      <dc:creator>orital81</dc:creator>
      <dc:date>2013-04-30T13:55:16Z</dc:date>
    </item>
  </channel>
</rss>

