<?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: Load Between Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Between-Dates/m-p/1045480#M351520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First re-build the first table with all the necessary details(please follow the method suggested by &lt;A href="https://community.qlik.com/qlik-users/34510"&gt;Kaushik.solanki&lt;/A&gt; and then&amp;nbsp; l&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ink the tables ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would suggest you to build a composite key like KEY&amp;amp;'-'&amp;amp;Date as New_Key&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 10:01:32 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2016-04-04T10:01:32Z</dc:date>
    <item>
      <title>Load Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Between-Dates/m-p/1045478#M351518</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;I have two tables that I would like to join. One table has a date and a fuel price. the fuel price changes at irregular intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FuelPrice:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [_Key, FuelDate, FuelPrice&lt;/P&gt;&lt;P&gt;Q-14, 23.03.2016, 22.88&lt;/P&gt;&lt;P&gt;Q-14, 29.03.2016, 22.18&lt;/P&gt;&lt;P&gt;Q-14, 31.03.2016, 21.24&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flights:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [_Key, FlightNo, Origin, Destination, FlightDate&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 25.03.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 26.03.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 27.03.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 28.03.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 29.03.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 30.03.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 31.03.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 01.04.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 02.04.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 03.04.2016&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 04.04.2016&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to link the FuelPrice to the flights table and have the corresponding FuelPrice for each date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flights:&lt;/P&gt;&lt;P&gt;_Key, FlightNo, Origin, Destination, FlightDate, FuelPrice&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 25.03.2016, 22.88&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 26.03.2016, 22.88&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 27.03.2016, 22.88&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 28.03.2016, 22.88&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 29.03.2016, 22.18&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 30.03.2016, 22.18&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 31.03.2016, 21.24&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 01.04.2016, 21.24&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 02.04.2016, 21.24&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 03.04.2016, 21.24&lt;/P&gt;&lt;P&gt;Q-14, RC 1000, WUH, PEK, 04.04.2016, 21.24&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using an Interval Match should probably work, though I only have one date field in the FuelPrice table. How could I easily add the previous FuelDate as an EndFuelDate or if it's the last record using the current date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there a simpler version to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 06:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Between-Dates/m-p/1045478#M351518</guid>
      <dc:creator />
      <dc:date>2016-04-04T06:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Load Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Between-Dates/m-p/1045479#M351519</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;Try this script to get start and end date and then you can use the interval match to link that with other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FuelPrice:&lt;/P&gt;&lt;P&gt;LOAD *,Previous(FuelDate) as PreviousDate INLINE [_Key, FuelDate, FuelPrice&lt;/P&gt;&lt;P&gt;Q-14, 23.03.2016, 22.88&lt;/P&gt;&lt;P&gt;Q-14, 29.03.2016, 22.18&lt;/P&gt;&lt;P&gt;Q-14, 31.03.2016, 21.24&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join &lt;/P&gt;&lt;P&gt;Load PreviousDate as FuelDate, FuelDate as EndDate&lt;/P&gt;&lt;P&gt;Resident FuelPrice;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop field PreviousDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 09:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Between-Dates/m-p/1045479#M351519</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-04-04T09:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load Between Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Between-Dates/m-p/1045480#M351520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First re-build the first table with all the necessary details(please follow the method suggested by &lt;A href="https://community.qlik.com/qlik-users/34510"&gt;Kaushik.solanki&lt;/A&gt; and then&amp;nbsp; l&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ink the tables ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would suggest you to build a composite key like KEY&amp;amp;'-'&amp;amp;Date as New_Key&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 10:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Between-Dates/m-p/1045480#M351520</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-04-04T10:01:32Z</dc:date>
    </item>
  </channel>
</rss>

