<?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 New Customer Counts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187875#M51377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need a little help counting "New" customers. Here is my scenario. We will create a customer in 2008, but the customer does not become a "true" customer until their first invoice is cut. What can I do to identify these customers once they are invoiced?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2009 01:33:51 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2009-09-16T01:33:51Z</dc:date>
    <item>
      <title>New Customer Counts</title>
      <link>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187875#M51377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need a little help counting "New" customers. Here is my scenario. We will create a customer in 2008, but the customer does not become a "true" customer until their first invoice is cut. What can I do to identify these customers once they are invoiced?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 01:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187875#M51377</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2009-09-16T01:33:51Z</dc:date>
    </item>
    <item>
      <title>New Customer Counts</title>
      <link>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187876#M51378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I imagine you invoices table contains a customer ID. Once you link the two tables together, you will have customers with invoices and those without. Those without will have Nulls for the linked invoice fields. If you make a table with customers as the dimension and add Count(Invoice ID) as the expression, that would give you a list of true customers. Customers with no invoices will not appear (if Suppress Zero Values is checked).&lt;/P&gt;&lt;P&gt;Depending on what exactly you want to do, there may be different approaches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 01:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187876#M51378</guid>
      <dc:creator />
      <dc:date>2009-09-16T01:39:21Z</dc:date>
    </item>
    <item>
      <title>New Customer Counts</title>
      <link>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187877#M51379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know who my true customers are, my problem is out of those true customers who is "new" this year. Is there a way to identify the new customers via the script? I only want to count the new customers for this year.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 01:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187877#M51379</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2009-09-16T01:50:14Z</dc:date>
    </item>
    <item>
      <title>New Customer Counts</title>
      <link>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187878#M51380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use Set Analysis to only count those invoices for the current year.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count({&amp;lt;InvoiceYear = {'$(=Year(Today()))'}&amp;gt;} InvoiceID)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That would only count invoices from this year. You could also use&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Count({&amp;lt;InvoiceYear = {'&amp;lt;$(=Year(Today()))'}&amp;gt;} InvoiceID)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That would give invoices from anything prior to this year. If the second expression equals 0 and the first is greater than zero then they are new customers for this year.&lt;/P&gt;&lt;P&gt;If you want to do that in a load script, you could probably use similar logic. Count all the invoices for previous years and if that is zero and they have invoices this year, they are new for this year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 02:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187878#M51380</guid>
      <dc:creator />
      <dc:date>2009-09-16T02:00:19Z</dc:date>
    </item>
    <item>
      <title>New Customer Counts</title>
      <link>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187879#M51381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it, but not what I was expecting to see. It showed no new customers which I know is not right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 02:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187879#M51381</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2009-09-16T02:29:50Z</dc:date>
    </item>
    <item>
      <title>New Customer Counts</title>
      <link>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187880#M51382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;tmumaw wrote:&lt;BR /&gt;I tried it, but not what I was expecting to see. It showed no new customers which I know is not right. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;It did work when I use the customer as a dim. My problem is I need to do it by cost center. What I need to do is work this logic into my load script.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 02:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187880#M51382</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2009-09-16T02:48:58Z</dc:date>
    </item>
    <item>
      <title>New Customer Counts</title>
      <link>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187881#M51383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do it in your load script, you would load the tables multiple times or use a subquery. Something like this should work:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Select *&lt;BR /&gt;From Customers, Invoices,&lt;BR /&gt; (Select CustomerID, Count(Invoice Id) As CurInvoices&lt;BR /&gt; From Customers, Invoices&lt;BR /&gt; Where Customers.CustomerID = Invoices.CustomerID&lt;BR /&gt; and InvoiceYear = Year(SYSDATE)&lt;BR /&gt; Group By CustomerID) CY,&lt;BR /&gt; (Select CustomerID, Count(Invoice Id) As PrevInvoices&lt;BR /&gt; From Customers, Invoices&lt;BR /&gt; Where Customers.CustomerID = Invoices.CustomerID&lt;BR /&gt; and InvoiceYear &amp;lt; Year(SYSDATE)&lt;BR /&gt; Group By CustomerID) PY&lt;BR /&gt;Where Customers.CustomerID = Invoices.CustomerID&lt;BR /&gt; and Customers.CustomerID = CY.CustomerID&lt;BR /&gt; and Customers.CustomerID = PY.CustomerID&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now that's pretty messy, but it should work. There are probably other ways to do it in QlikView as well. I usually prefer to do my work in a SQL editor and once it's working there, just paste it right into QlikView. Some people would probably rather pull the basics from the database and then QlikView to do the dirty work.&lt;/P&gt;&lt;P&gt;Note: This is Pl/SQL (Oracle) syntax, it's a little different if you're using SQL Server. I didn't test any of that code, so it may not be perfect. The logic is the important part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 04:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-Customer-Counts/m-p/187881#M51383</guid>
      <dc:creator />
      <dc:date>2009-09-16T04:02:52Z</dc:date>
    </item>
  </channel>
</rss>

