<?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: How to create a filter for OVERLAPPING DATES in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811593#M1021759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Expn is Count(distinct SID) other columns r just Dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Mar 2015 23:55:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-28T23:55:07Z</dc:date>
    <item>
      <title>How to create a filter for OVERLAPPING DATES</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811591#M1021756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following fields:&lt;/P&gt;&lt;P&gt;ProductID, Contract#, Contract status, Contract start date &amp;amp; contract end date. contracts are assigned only after one expires. Meaning, contracts should be extended only after the 1st one expires. So I am looking for duplicate contracts that were issued before the previous one expired and it can be captured by spotting overlapping dates. I was thinking about Interval match but I dont know where to start. any help would be great I have also attached excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 23:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811591#M1021756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-27T23:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a filter for OVERLAPPING DATES</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811592#M1021758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use canonical date for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this link : &lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 12:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811592#M1021758</guid>
      <dc:creator>simsondevadoss</dc:creator>
      <dc:date>2015-03-28T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a filter for OVERLAPPING DATES</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811593#M1021759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Expn is Count(distinct SID) other columns r just Dimensions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 23:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811593#M1021759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-28T23:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a filter for OVERLAPPING DATES</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811594#M1021760</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;You could check for overlapping in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_contr:&lt;/P&gt;&lt;P&gt;LOAD ProductID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract #], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract Status], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#([Contract Start Date],'M/D/YYYY') As [Contract Start Date], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#([Contract End Date] ,'M/D/YYYY') As [Contract End Date]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;temp2_contr:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ProductID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract #], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract Status], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract Start Date], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract End Date]&lt;/P&gt;&lt;P&gt;RESIDENT temp_contr order by ProductID, [Contract Start Date], [Contract End Date];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;contracts:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ProductID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract #], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract Status], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract Start Date], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract End Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ProductID = Peek(ProductID),If([Contract Start Date] &amp;lt; Peek([Contract End Date]), 1, 0),0) As Overlapping&lt;/P&gt;&lt;P&gt;RESIDENT temp2_contr;&lt;/P&gt;&lt;P&gt;Drop Tables temp_contr, temp2_contr;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2015 14:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811594#M1021760</guid>
      <dc:creator />
      <dc:date>2015-03-29T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a filter for OVERLAPPING DATES</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811595#M1021761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just realized you could miss some lines by the method I suggested.&lt;/P&gt;&lt;P&gt;Maybe add another table with distinct ProductID and check for overlapping:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;overlap:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT &lt;/P&gt;&lt;P&gt;&amp;nbsp; ProductID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Sum(Overlapping) &amp;gt; 0, 1, 0) As check&lt;/P&gt;&lt;P&gt;Resident contracts Group by ProductID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2015 15:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811595#M1021761</guid>
      <dc:creator />
      <dc:date>2015-03-29T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a filter for OVERLAPPING DATES</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811596#M1021762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks t h , I will use this approach and let you know how it goes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2015 23:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811596#M1021762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-29T23:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a filter for OVERLAPPING DATES</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811597#M1021763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Is there any way to see all the overlapping contract ids for a particular product id instead of&amp;nbsp; showing that overlapped contract id alone in the above script?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;eg:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;product-id, contract-id&amp;nbsp; ,start-date ,end-date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p1, c1, 25/1/15, 29/1/15&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p1, c2, 26/1/15, 25/2/16&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;p1, c3,23/2/16, 25/5/17&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Here I would like to see all the contract ids as overlapped instead of c2 and c3.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Kiruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2015 01:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-filter-for-OVERLAPPING-DATES/m-p/811597#M1021763</guid>
      <dc:creator />
      <dc:date>2015-09-20T01:50:48Z</dc:date>
    </item>
  </channel>
</rss>

