<?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 Interval Match explodes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-Match-explodes/m-p/148459#M26746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There ( I tried this before, but the code at the bottom was poorly formatted, so here is the same post but with a better code-format),&lt;/P&gt;&lt;P&gt;I've got a problem with interval matching 2 tables, it keeps loading an unlimited amount of records when I run it. I'm trying to connect the table (DBC) to a table (EK) based on the following interval match:&lt;/P&gt;&lt;ADDRESS&gt;If (BegindatumDBC) is in the interval (BegindatumEK-EinddatumEK) then connect the values (DBC)&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/ADDRESS&gt;&lt;P&gt;I need to connect more values (through left joints) from that table but need to drop the EK table in the end to work around synthetic keys.... at least I think.&lt;/P&gt;&lt;P&gt;Still, when I run it, it keeps exploding in loading an unlimited number of records the second time it loads the (EK) table to match.&lt;/P&gt;&lt;P&gt;Can anybody help me out?&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;BR /&gt;DBC:&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;I&gt;&lt;BR /&gt;EK:&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;BR /&gt;left&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;left join (DBC) load * Resident EK;&lt;/B&gt;&lt;BR /&gt;&lt;B&gt;drop table EK;&lt;/B&gt; &lt;B&gt;join&lt;/B&gt; IntervalMatch(BegindatumDBCnum) load BeginddatumEKnum, EinddatumEKnum resident EK;&lt;B&gt;LOAD&lt;/B&gt;[DBC zonder ZV] &lt;B&gt;as&lt;/B&gt; DBC, [DBC declaratiecode verzekerde zorg] &lt;B&gt;as&lt;/B&gt; DeclaCode, Ingangsdatum,Afloopdatum,MAKEDATE(LEFT(Ingangsdatum,4),MID(Ingangsdatum,5, 2),RIGHT(Ingangsdatum,2)) &lt;B&gt;as&lt;/B&gt; BegindatumEK,MAKEDATE(LEFT(Afloopdatum,4),MID(Afloopdatum,5, 2),RIGHT(Afloopdatum,2)) &lt;B&gt;as&lt;/B&gt; EinddatumEK,num(MAKEDATE(LEFT(Ingangsdatum,4),MID(Ingangsdatum,5, 2),RIGHT(Ingangsdatum,2))) &lt;B&gt;as&lt;/B&gt; BeginddatumEKnum,num(MAKEDATE(LEFT(Afloopdatum,4),MID(Afloopdatum,5, 2),RIGHT(Afloopdatum,2))) &lt;B&gt;as&lt;/B&gt; EinddatumEKnum&lt;B&gt;FROM&lt;/B&gt;&lt;M&gt; (txt, codepage is 1252, embedded labels, delimiter is ';', msq, header is 2 lines);&lt;B&gt;LOAD&lt;/B&gt; Id,Begindatum,MAKEDATE(LEFT(Begindatum,4),MID(Begindatum,5, 2),RIGHT(Begindatum,2)) &lt;B&gt;as&lt;/B&gt; BegindatumDBC,num(MAKEDATE(LEFT(Begindatum,4),MID(Begindatum,5, 2),RIGHT(Begindatum,2))) &lt;B&gt;as&lt;/B&gt; BegindatumDBCnum,AGB &amp;amp;'.'&amp;amp; Zorgtype &amp;amp;'.'&amp;amp; Diagnose &amp;amp;'.'&amp;amp; Behandeling &lt;B&gt;as&lt;/B&gt; DBC&lt;B&gt;FROM&lt;/B&gt;[..\..\DBC analyse\DBCInvoerbestandmetDBCcode.csv] (txt, codepage is 1252, embedded labels, delimiter is ';', msq);&lt;BR /&gt;[\code]&amp;lt;/body&amp;gt;&lt;/M&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2009 22:26:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-03T22:26:06Z</dc:date>
    <item>
      <title>Interval Match explodes</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-explodes/m-p/148459#M26746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There ( I tried this before, but the code at the bottom was poorly formatted, so here is the same post but with a better code-format),&lt;/P&gt;&lt;P&gt;I've got a problem with interval matching 2 tables, it keeps loading an unlimited amount of records when I run it. I'm trying to connect the table (DBC) to a table (EK) based on the following interval match:&lt;/P&gt;&lt;ADDRESS&gt;If (BegindatumDBC) is in the interval (BegindatumEK-EinddatumEK) then connect the values (DBC)&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/ADDRESS&gt;&lt;P&gt;I need to connect more values (through left joints) from that table but need to drop the EK table in the end to work around synthetic keys.... at least I think.&lt;/P&gt;&lt;P&gt;Still, when I run it, it keeps exploding in loading an unlimited number of records the second time it loads the (EK) table to match.&lt;/P&gt;&lt;P&gt;Can anybody help me out?&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;BR /&gt;DBC:&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;I&gt;&lt;BR /&gt;EK:&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;BR /&gt;left&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;left join (DBC) load * Resident EK;&lt;/B&gt;&lt;BR /&gt;&lt;B&gt;drop table EK;&lt;/B&gt; &lt;B&gt;join&lt;/B&gt; IntervalMatch(BegindatumDBCnum) load BeginddatumEKnum, EinddatumEKnum resident EK;&lt;B&gt;LOAD&lt;/B&gt;[DBC zonder ZV] &lt;B&gt;as&lt;/B&gt; DBC, [DBC declaratiecode verzekerde zorg] &lt;B&gt;as&lt;/B&gt; DeclaCode, Ingangsdatum,Afloopdatum,MAKEDATE(LEFT(Ingangsdatum,4),MID(Ingangsdatum,5, 2),RIGHT(Ingangsdatum,2)) &lt;B&gt;as&lt;/B&gt; BegindatumEK,MAKEDATE(LEFT(Afloopdatum,4),MID(Afloopdatum,5, 2),RIGHT(Afloopdatum,2)) &lt;B&gt;as&lt;/B&gt; EinddatumEK,num(MAKEDATE(LEFT(Ingangsdatum,4),MID(Ingangsdatum,5, 2),RIGHT(Ingangsdatum,2))) &lt;B&gt;as&lt;/B&gt; BeginddatumEKnum,num(MAKEDATE(LEFT(Afloopdatum,4),MID(Afloopdatum,5, 2),RIGHT(Afloopdatum,2))) &lt;B&gt;as&lt;/B&gt; EinddatumEKnum&lt;B&gt;FROM&lt;/B&gt;&lt;M&gt; (txt, codepage is 1252, embedded labels, delimiter is ';', msq, header is 2 lines);&lt;B&gt;LOAD&lt;/B&gt; Id,Begindatum,MAKEDATE(LEFT(Begindatum,4),MID(Begindatum,5, 2),RIGHT(Begindatum,2)) &lt;B&gt;as&lt;/B&gt; BegindatumDBC,num(MAKEDATE(LEFT(Begindatum,4),MID(Begindatum,5, 2),RIGHT(Begindatum,2))) &lt;B&gt;as&lt;/B&gt; BegindatumDBCnum,AGB &amp;amp;'.'&amp;amp; Zorgtype &amp;amp;'.'&amp;amp; Diagnose &amp;amp;'.'&amp;amp; Behandeling &lt;B&gt;as&lt;/B&gt; DBC&lt;B&gt;FROM&lt;/B&gt;[..\..\DBC analyse\DBCInvoerbestandmetDBCcode.csv] (txt, codepage is 1252, embedded labels, delimiter is ';', msq);&lt;BR /&gt;[\code]&amp;lt;/body&amp;gt;&lt;/M&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 22:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-explodes/m-p/148459#M26746</guid>
      <dc:creator />
      <dc:date>2009-07-03T22:26:06Z</dc:date>
    </item>
  </channel>
</rss>

