<?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: Joining two Tables with different Intervalls in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Joining-two-Tables-with-different-Intervalls/m-p/2122487#M91374</link>
    <description>&lt;P&gt;You may have to do twice the interval join.&lt;BR /&gt;First Table A with Table B joining A.BEGDA with the interval between B.BEGDA and B.ENDDA.&lt;BR /&gt;Then, for each resulting lines, you keep the lowest ENDDA (of A.ENDDA and B.ENDDA).&lt;BR /&gt;And you join this resulting table with B using ENDDA.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 13:17:59 GMT</pubDate>
    <dc:creator>vincent_ardiet_</dc:creator>
    <dc:date>2023-09-26T13:17:59Z</dc:date>
    <item>
      <title>Joining two Tables with different Intervalls</title>
      <link>https://community.qlik.com/t5/App-Development/Joining-two-Tables-with-different-Intervalls/m-p/2122333#M91363</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am having two tables where I need to bring the information together, but I am unsure how to join or intervallmatch it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First table has the fields PERN (Person), BEGDA(startdate), ENDDA (enddate) and a attribute (1_Attribute).&lt;/P&gt;
&lt;P&gt;Table A:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="80" height="19" style="height: 14.5pt; width: 60pt;"&gt;PERNR&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;BEGDA&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;ENDDA&lt;/TD&gt;
&lt;TD width="80" style="width: 60pt;"&gt;1_Attribute&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;10504&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;01.01.2021&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;30.11.2022&lt;/TD&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;10504&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;01.12.2022&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;31.12.9999&lt;/TD&gt;
&lt;TD&gt;C&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" style="height: 14.5pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;195486&lt;/TD&gt;
&lt;TD align="right" class="xl66"&gt;&lt;STRONG&gt;&lt;EM&gt;01.01.2021&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="right" class="xl65"&gt;&lt;STRONG&gt;31.12.9999&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;D&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second table has also information about same person, but for another Attribute and the start and enddate (can but) must NOT match.&lt;/P&gt;
&lt;P&gt;Table B:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="60.3056px" height="14px" style="height: 14.5pt; width: 60pt;"&gt;PERNR&lt;/TD&gt;
&lt;TD width="90.3542px" height="14px" style="width: 60pt;"&gt;BEGDA&lt;/TD&gt;
&lt;TD width="82.5069px" height="14px" style="width: 60pt;"&gt;ENDDA&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px" style="width: 60pt;"&gt;2_Attribute&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="60.3056px" height="14px" align="right" style="height: 14.5pt;"&gt;10504&lt;/TD&gt;
&lt;TD width="90.3542px" height="14px" align="right" class="xl65"&gt;01.01.2021&lt;/TD&gt;
&lt;TD width="82.5069px" height="14px" align="right" class="xl65"&gt;31.12.9999&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px"&gt;X&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="60.3056px" height="14px" style="height: 14.5pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="90.3542px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="82.5069px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="60.3056px" height="14px" align="right" style="height: 14.5pt;"&gt;195486&lt;/TD&gt;
&lt;TD width="90.3542px" height="14px" align="right" class="xl65"&gt;&lt;STRONG&gt;01.01.2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="82.5069px" height="14px" align="right" class="xl66"&gt;&lt;STRONG&gt;31.12.2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px"&gt;Y&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="60.3056px" height="14px" align="right" style="height: 14.5pt;"&gt;195486&lt;/TD&gt;
&lt;TD width="90.3542px" height="14px"&gt;&lt;STRONG&gt;01.01.2022&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="82.5069px" height="14px" align="right" class="xl67"&gt;&lt;STRONG&gt;31.12.9999&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px"&gt;Z&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result should look like that:&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 300pt;" border="0" width="398px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="62.3889px" height="14px" style="height: 14.5pt; width: 60pt;"&gt;PERNR&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" style="width: 60pt;"&gt;BEGDA&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" style="width: 60pt;"&gt;ENDDA&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px" style="width: 60pt;"&gt;1_Attribute&lt;/TD&gt;
&lt;TD width="85.9583px" height="14px" style="width: 60pt;"&gt;2_Attribute&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="62.3889px" height="14px" align="right" style="height: 14.5pt;"&gt;10504&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" align="right" class="xl65"&gt;01.01.2021&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" align="right" class="xl65"&gt;30.11.2022&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px"&gt;A&lt;/TD&gt;
&lt;TD width="85.9583px" height="14px"&gt;X&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="62.3889px" height="14px" align="right" style="height: 14.5pt;"&gt;10504&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" align="right" class="xl65"&gt;01.12.2022&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" align="right" class="xl65"&gt;31.12.9999&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px"&gt;C&lt;/TD&gt;
&lt;TD width="85.9583px" height="14px"&gt;X&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="62.3889px" height="14px" align="right" style="height: 14.5pt;"&gt;195486&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" align="right" class="xl66"&gt;&lt;STRONG&gt;01.01.2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" align="right" class="xl67"&gt;&lt;STRONG&gt;31.12.2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px"&gt;D&lt;/TD&gt;
&lt;TD width="85.9583px" height="14px"&gt;Y&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="62.3889px" height="14px" align="right" style="height: 14.5pt;"&gt;195486&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px"&gt;&lt;STRONG&gt;01.01.2022&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="82.4097px" height="14px" align="right" class="xl68"&gt;&lt;STRONG&gt;31.12.9999&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="85.9444px" height="14px"&gt;D&lt;/TD&gt;
&lt;TD width="85.9583px" height="14px"&gt;Z&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The two first rows from table A have joined with 1st row from table B&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and third row from table A have joined with 2/3 fro table B&lt;/P&gt;
&lt;P&gt;Does somebody please have an idea how to accomplish this?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 08:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Joining-two-Tables-with-different-Intervalls/m-p/2122333#M91363</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2023-09-26T08:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two Tables with different Intervalls</title>
      <link>https://community.qlik.com/t5/App-Development/Joining-two-Tables-with-different-Intervalls/m-p/2122487#M91374</link>
      <description>&lt;P&gt;You may have to do twice the interval join.&lt;BR /&gt;First Table A with Table B joining A.BEGDA with the interval between B.BEGDA and B.ENDDA.&lt;BR /&gt;Then, for each resulting lines, you keep the lowest ENDDA (of A.ENDDA and B.ENDDA).&lt;BR /&gt;And you join this resulting table with B using ENDDA.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 13:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Joining-two-Tables-with-different-Intervalls/m-p/2122487#M91374</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-09-26T13:17:59Z</dc:date>
    </item>
  </channel>
</rss>

