<?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: Find new subscripers or subscripers lost, previous(), Churn in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805636#M284433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any way you can make a test QVW with test data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Mar 2015 15:28:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-15T15:28:19Z</dc:date>
    <item>
      <title>Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805635#M284432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find new subscribers per day and subscribers lost per day.&amp;nbsp; I have been using previous() do it. I think I have found a way to find new customers but I cannot crack the issue with lost subscribers.&amp;nbsp; The data is basically as&lt;/P&gt;&lt;P&gt;DagsStads, KennitalaRetthafa&lt;/P&gt;&lt;P&gt;2015-02-01, 1 Start of subscription&lt;/P&gt;&lt;P&gt;2015-02-02, 1&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;2015-02-28, 1 Still a &lt;/SPAN&gt;subscriber&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2015-02-01, 2 Start of subscription&lt;/P&gt;&lt;P&gt;2015-02-01, 2&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;2015-02-10, 2 - Lost customer&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the min(date) is the start date of the subscription , so I would like to mark him as new, the last max(date) is the day he stops, but if the max(date) is last day of month he is still a customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code as is, any hints would be greatly appreciated. On top of this I was thinking of calculating subscriper churn rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDags:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;maxString&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;DagsStads&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;MaxDags&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;MinString&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;DagsStads&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;MinDags&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; &lt;C&gt; (&lt;SPAN style="color: #0433ff;"&gt;qvd&lt;/SPAN&gt;);&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vMaxDags&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0433ff;"&gt;PEEK&lt;/SPAN&gt;('MaxDags');&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vMinDags&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('MinDags');&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;TABLE&lt;/SPAN&gt; MaxDags;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Regards Birkir &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; [SubsData]:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;DagsStads&lt;/SPAN&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;KennitalaRetthafa&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; &lt;C&gt; (&lt;SPAN style="color: #0433ff;"&gt;qvd&lt;/SPAN&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; [NewSubs]:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;DagsStads&lt;/SPAN&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;KennitalaRetthafa&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;KennitalaRetthafa&lt;/SPAN&gt;) = &lt;SPAN style="color: #941100;"&gt;KennitalaRetthafa&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;DagsStads&lt;/SPAN&gt;) &amp;lt;&amp;gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vMaxDags)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;, 'Áskrift','Nýr') &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Previ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #008f00;"&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt; SubsData&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;KennitalaRetthafa&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;DagsStads&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Table&lt;/SPAN&gt; SubsData;&lt;/C&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2015 15:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805635#M284432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-15T15:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805636#M284433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any way you can make a test QVW with test data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2015 15:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805636#M284433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-15T15:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805637#M284434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes just added a zip file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks regards&lt;/P&gt;&lt;P&gt;Birkir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2015 15:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805637#M284434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-15T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805638#M284435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh wow Icelandic:) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are on the right track with your code. I remember I had issues before with ORDER BY and previous peek functions in the same load statement. Try to do ORDER BY first and then resident load ordered table and use previous function at that point - so you would do ORDER BY on SubsData table not for NewSubs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also why your max/min dates are global and not subscriber related?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805638#M284435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805639#M284436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes sorry for the Icelandic, I was getting a bad from my wife when I was replying &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;P&gt;I will try the Order By trick you mentioned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes regarding the max/min dates, I thought about having it on a per subscriber base, how would you do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Birkir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805639#M284436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805640#M284437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are many ways...you could use RANK function and GROUP BY for example to rank group of rows that would relate to one SubscriberID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR you can just get away with GROUP BY on a resident table and storing min/max date in the third table by subscriberID and join it back to your main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even with your test QVD (thanks for uploading it), it is a bit tough to understand your data and what you are trying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 01:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805640#M284437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-17T01:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805641#M284438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a new file, this time not Icelandic &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; added a qvw file. So maybe this will help to explain what I am trying to achieve.&lt;/P&gt;&lt;P&gt;So this is more or less the result I am after, but I am kind of lost in how to get there.&amp;nbsp; The is to look at the first date in a snapshot table and mark a customer as new, if found in previous which is not new then it is an established subscription. If previous subsId changes the previous subscriber quit that day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again all hints are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boris thanks again for all your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Birkir&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;IMG __jive_id="81071" alt="ResultSubs.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/81071_ResultSubs.png" style="height: auto; float: left;" /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 22:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805641#M284438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-17T22:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805642#M284439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you forgot to attach your QVD. also in your sample data, only New subscribers are present so there is no Quit or Subscription.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 14:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805642#M284439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-18T14:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805643#M284440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for this my mistake, I added the QVD file and a bit more data, this customer 2212862789 stops his subscription on the 2014-03-11 and starts again on the 2015-01-26. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still a puzzled with this, &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Birkir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 15:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805643#M284440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-18T15:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805644#M284441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your QVD has only two fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 18:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805644#M284441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-18T18:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805645#M284442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have found the solution. This seems to do the trick. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Special thanks to Boris to pitch in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxSubscriptionDate:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;maxString&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;MaxDags&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;MinString&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;MinDags&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; &lt;C&gt; (&lt;SPAN style="color: #0433ff;"&gt;qvd&lt;/SPAN&gt;);&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vMaxDags&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0433ff;"&gt;PEEK&lt;/SPAN&gt;('MaxDags');&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vMinDags&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('MinDags');&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;TABLE&lt;/SPAN&gt; MaxSubscriptionDate;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; [SubsData]:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; &lt;C&gt; (&lt;SPAN style="color: #0433ff;"&gt;qvd&lt;/SPAN&gt;);&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; [NewSubs]:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;) = &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;previous&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;) &amp;lt;= &lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;-30, 'Quit','New')='New' &lt;SPAN style="color: #0433ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;) = &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Previous&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt;) = &lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;previous&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;) &amp;lt;= &lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;-1,'Áskrift','Nýr') &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubscriptionStatus&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt; SubsData&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="color: #008f00;"&gt;//&lt;BR /&gt; //&lt;BR /&gt; &lt;/SPAN&gt;[Churn]:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;SubscriptionStatus&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('SubscriptionStatus',&lt;SPAN style="color: #0433ff;"&gt;RowNo&lt;/SPAN&gt;(),'NewSubs')='Nýr' &lt;SPAN style="color: #0433ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('SubsId',&lt;SPAN style="color: #0433ff;"&gt;RowNo&lt;/SPAN&gt;(),'NewSubs')=&lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;,'Hættur','Áskrift') &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;sbla&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubscriptionStatus&lt;/SPAN&gt;='Nýr',&lt;SPAN style="color: #941100;"&gt;SubscriptionStatus&lt;/SPAN&gt;,&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('SubscriptionStatus',&lt;SPAN style="color: #0433ff;"&gt;RowNo&lt;/SPAN&gt;(),'NewSubs')='Nýr' &lt;SPAN style="color: #0433ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('SubsId',&lt;SPAN style="color: #0433ff;"&gt;RowNo&lt;/SPAN&gt;(),'NewSubs')=&lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;,'Hættur','Áskrift')) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;bahaha&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt; NewSubs&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;Order&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt;, &lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; MaxSubDags:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;Concatenate&lt;/SPAN&gt; (NewSubs)&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;maxString&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubMaxDags&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;MinString&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;SubscriptionDate&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubMinDags&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt; SubsData&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;SubsId&lt;/SPAN&gt;,&lt;SPAN style="color: #941100;"&gt;Subscription&lt;/SPAN&gt;;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Tables&lt;/SPAN&gt; SubsData;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;/C&gt;&lt;/C&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 21:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805645#M284442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-18T21:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find new subscripers or subscripers lost, previous(), Churn</title>
      <link>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805646#M284443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes that was all I needed, I managed to find a solution. Check it out and see if it makes any sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thanks for all your help Boris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 21:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-new-subscripers-or-subscripers-lost-previous-Churn/m-p/805646#M284443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-18T21:20:21Z</dc:date>
    </item>
  </channel>
</rss>

