<?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: Intervalmatch-type problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741817#M264894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right about the corruption - I posted this with valid QVDs etc at:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/656465?et=watches.email.thread#656465" title="http://community.qlik.com/message/656465?et=watches.email.thread#656465"&gt;Intervalmatch() or Date comparison? | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do you mind putting your response to that thread please or something else now that you have valid data files!!&lt;/P&gt;&lt;P&gt;Thanks for responding&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Nov 2014 10:19:58 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2014-11-14T10:19:58Z</dc:date>
    <item>
      <title>Intervalmatch-type problem</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741815#M264892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have simplified my problem with this following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="_test1.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71199__test1.jpg" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Calendar (as above) and a file (called Usage here) that has records that contain a StartDate an EndDate and a SubscriberKey. The 2 tables need to be disjointed (remember this is a small part of a very large application).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to see a distribution (by Month-Year) of active subscribers ( i.e. count(distint (SubscriberKey)))&amp;nbsp; - the way that I ascertain that a subscriber is active for a specific month is to see whether they have a StartDate that is either inside or before the month and an EndDate that is no less than the beginning of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, active subscribers for the month of "May 2014" are those that have a StartDate that is less than or equal 31/5/2014 and an EndDate that is greater or equal 1/5/2014. I have already ensured that the EndDate is greater than the StartDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="_test2.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/71200__test2.jpg" /&gt; &lt;/P&gt;&lt;P&gt;I have attached a demo file that has some data and the above structure that can be used. I also attach the 2 QVDs that make up the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a classic intervalmatch scenario (I don't think) as I am not charting by the Start/EndDate intervals but merely using these fields to establish inclusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be much appreciated.&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 18:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741815#M264892</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-13T18:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch-type problem</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741816#M264893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your TestUsage.QVD file seems to be corrupt. I can't load it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can try is generate records for every day for the interval between Start and End date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage:&lt;/P&gt;&lt;P&gt;LOAD UsageKey, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubscriberKey, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(StartDate) As StartDateInt, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(EndDate) As EndDateInt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate + IterNo() -1 as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM comm142040.QVD (qvd)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHILE StartDate + IterNo() &amp;lt; EndDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 09:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741816#M264893</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-14T09:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch-type problem</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741817#M264894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right about the corruption - I posted this with valid QVDs etc at:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/656465?et=watches.email.thread#656465" title="http://community.qlik.com/message/656465?et=watches.email.thread#656465"&gt;Intervalmatch() or Date comparison? | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do you mind putting your response to that thread please or something else now that you have valid data files!!&lt;/P&gt;&lt;P&gt;Thanks for responding&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 10:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741817#M264894</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-14T10:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch-type problem</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741818#M264895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried your suggestion but stopped the process after 70 million records got created....&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 14:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-type-problem/m-p/741818#M264895</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2014-11-14T14:59:42Z</dc:date>
    </item>
  </channel>
</rss>

