<?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 Table Join with chronological join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-Join-with-chronological-join/m-p/1954383#M1231900</link>
    <description>&lt;P&gt;Hello everyone!!&lt;/P&gt;
&lt;P&gt;I have the following tables&lt;/P&gt;
&lt;P&gt;Table1: on this table i would like to be able to add the information about&amp;nbsp;&lt;STRONG&gt;Delivery Number&amp;nbsp;&lt;/STRONG&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Delivery Date&amp;nbsp;&lt;/STRONG&gt;that are saved on another table (Table 2).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikviewaf_0-1657610222860.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83878iBBF9DE7EA76E8C9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qlikviewaf_0-1657610222860.png" alt="qlikviewaf_0-1657610222860.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The join from table 2, needs to be done using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Item + Location + Lotn&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and then assign the most recent&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Delivery Number and Delivery Date&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to the table 1 - so the rows highlighted in green should be reported in the table1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Complexity of this, is that if for an item-lot-location i have 2 (or maybe more records, as it is for item B-NewYork-CC12) i have to first assign the most recent value (1239038) and then the less recent value (1928397). It's like a chronological assignemnt.&lt;/P&gt;
&lt;P&gt;Does anyone know if this can be achieved with qlikview?&lt;/P&gt;
&lt;P&gt;Thanks!!!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikviewaf_1-1657610222752.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83879i7C2653DC0F063179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qlikviewaf_1-1657610222752.png" alt="qlikviewaf_1-1657610222752.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator>qlikviewaf</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>Table Join with chronological join</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Join-with-chronological-join/m-p/1954383#M1231900</link>
      <description>&lt;P&gt;Hello everyone!!&lt;/P&gt;
&lt;P&gt;I have the following tables&lt;/P&gt;
&lt;P&gt;Table1: on this table i would like to be able to add the information about&amp;nbsp;&lt;STRONG&gt;Delivery Number&amp;nbsp;&lt;/STRONG&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Delivery Date&amp;nbsp;&lt;/STRONG&gt;that are saved on another table (Table 2).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikviewaf_0-1657610222860.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83878iBBF9DE7EA76E8C9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qlikviewaf_0-1657610222860.png" alt="qlikviewaf_0-1657610222860.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The join from table 2, needs to be done using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Item + Location + Lotn&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and then assign the most recent&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Delivery Number and Delivery Date&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to the table 1 - so the rows highlighted in green should be reported in the table1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Complexity of this, is that if for an item-lot-location i have 2 (or maybe more records, as it is for item B-NewYork-CC12) i have to first assign the most recent value (1239038) and then the less recent value (1928397). It's like a chronological assignemnt.&lt;/P&gt;
&lt;P&gt;Does anyone know if this can be achieved with qlikview?&lt;/P&gt;
&lt;P&gt;Thanks!!!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlikviewaf_1-1657610222752.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83879i7C2653DC0F063179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qlikviewaf_1-1657610222752.png" alt="qlikviewaf_1-1657610222752.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Join-with-chronological-join/m-p/1954383#M1231900</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table Join with chronological join</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Join-with-chronological-join/m-p/1976065#M1231903</link>
      <description>&lt;P&gt;Using the first four records in Table2 to exemplify&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table1:
load * From Table1;

Table2:
Load * Inline[
ITEM,LOCATION,LOTN,DELIVERY NUMBER,DELIVERY DATE
A,SYDNEY,AKJI202,12890,10/01/2022
B,NEW YORK,CC12,13190,12/01/2022
B,NEW YORK,CC12,13490,14/01/2022
C,PARIS,AB88,13790,16/01/2022
C,PARIS,AB88,14090,18/01/2022

];

Left Join(Table1)
LOAD ITEM,
     LOCATION,
     LOTN,
Max([DELIVERY NUMBER]) as [DELIVERY NUMBER],
MAX([DELIVERY DATE]) as [DELIVERY DATE]

Resident Table2
Group By ITEM,
         LOCATION,
         LOTN
Order By ITEM;
DROP TABLE Table2;
EXIT SCRIPT;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 21:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Join-with-chronological-join/m-p/1976065#M1231903</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-01T21:56:26Z</dc:date>
    </item>
  </channel>
</rss>

