<?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: lost customers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106879#M520343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I have been busy. I will definitely look at this and come back to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Aug 2016 20:09:57 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2016-08-15T20:09:57Z</dc:date>
    <item>
      <title>lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106870#M520334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have the following pivot table in which I'm counting the number of customers who got invoices transactions:&lt;/P&gt;&lt;P&gt;count(distinct {&amp;lt;TRANS_TYPE={'invoice'}&amp;gt;} CUSTOMER_KEY)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="134516" alt="community.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134516_community.png" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;what I want now is to add another column which counts the lost customers per month; a lost customer is the one who hasn't got any invoice transaction in the period 12 months prior to each month in the pivot table&lt;/P&gt;&lt;P&gt;so let's take the first business unit (scrambled here) now next to Jan 2016 I want to get the count of customers who haven't got any invoice transaction in the period which is between 1 Feb 2015 and 31 Dec 2015&lt;/P&gt;&lt;P&gt;next to Feb 2016 I want to get the count of customers who haven't got any invoice transaction in the period which is between&amp;nbsp; 1 Mar 2015 and 31 jan 2016 and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is in how to get the variable date range per row which depends on the month displayed&lt;/P&gt;&lt;P&gt;so in peudo code the lost customers are the ones excluded in the range of dates which depend on the displayed month year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 17:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106870#M520334</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2016-08-14T17:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106871#M520335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have numeric YEAR and MONTH Fields, then your comparison periods will be as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;=Addmonths(MakeDate(Year,Month,1),-11) &amp;lt; (MakeDate(Year,Month,1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 18:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106871#M520335</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-08-14T18:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106872#M520336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another way would be to add a flag for each customer for each month and then refer the flag in set analysis; should be easier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 18:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106872#M520336</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-08-14T18:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106873#M520337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mean something like this?&lt;/P&gt;&lt;P&gt;COUNT&lt;/P&gt;&lt;P&gt;&amp;nbsp; (DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CUSTOMER_KEY=E(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TRANS_DATE={'&amp;gt;=$(=NUM(DAYSTART(ADDMONTHS(MAKEDATE(YEAR,MONTH_NUM,1),-11)))) &amp;lt;$(=NUM(DAYSTART(MAKEDATE(YEAR,MONTH,1))))'}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }CUSTOMER_KEY&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; } &lt;/P&gt;&lt;P&gt;&amp;nbsp; CUSTOMER_KEY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 19:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106873#M520337</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2016-08-14T19:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106874#M520338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 06:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106874#M520338</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-08-15T06:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106875#M520339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may i share with you a sample document?&lt;/P&gt;&lt;P&gt;I got a customer whose name is 3 Chefs&lt;/P&gt;&lt;P&gt;this customer has 11/9/2015 as max date on which he go invoiced&lt;/P&gt;&lt;P&gt;However when I create a chart with Business_Unit_Name, and Month_Year as dimensions and use the above expression it is not being counted &lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 10:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106875#M520339</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2016-08-15T10:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106876#M520340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, please share a sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 10:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106876#M520340</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-08-15T10:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106877#M520341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I uploaded a sample qvw file&lt;/P&gt;&lt;P&gt;please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 11:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106877#M520341</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2016-08-15T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106878#M520342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the above expression that I used has no effect&lt;/P&gt;&lt;P&gt;it is getting the number of customers that are invoiced in the selection of dates&lt;/P&gt;&lt;P&gt;I selected 2016 and the condition which is &lt;/P&gt;&lt;P&gt; CUSTOMER_KEY=E(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TRANS_DATE={'&amp;gt;=$(=NUM(DAYSTART(ADDMONTHS(MAKEDATE(YEAR,MONTH_NUM,1),-11)))) &amp;lt;$(=NUM(DAYSTART(MAKEDATE(YEAR,MONTH,1))))'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }CUSTOMER_KEY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;has no effect ; the result is the same if I omit this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 16:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106878#M520342</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2016-08-15T16:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: lost customers</title>
      <link>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106879#M520343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I have been busy. I will definitely look at this and come back to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 20:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lost-customers/m-p/1106879#M520343</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-08-15T20:09:57Z</dc:date>
    </item>
  </channel>
</rss>

