<?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 interrelate two tables with dates ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-interrelate-two-tables-with-dates/m-p/823368#M667835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;I've finaly did it; I had some issues with qualify / unqualify to recognize the right fields but It's OK now.&lt;/P&gt;&lt;P&gt;Thanks again !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 13:24:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-26T13:24:44Z</dc:date>
    <item>
      <title>How to interrelate two tables with dates ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interrelate-two-tables-with-dates/m-p/823366#M667833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue in Qlikview and don't know how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables in a database : Table1 (train routing) &amp;amp; Table2 (season)&lt;/P&gt;&lt;P&gt;In table1 we have rows like :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;departure_station (ex: Paris), arrival_station (ex: London), departure_time (ex 24/12/2014 10:00), arrival_time (25/12/2014 11:00)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In table2 we have rows like :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;season_description (ex WINTER 2014), date_begin (ex 20/12/2014 00:00), date_end (ex 20/03/2015 00:00)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Qlikview doc, I have load the two tables like : &lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD Dep_station, Arr_station, dep_time, arr_time, Date(Floor(Date(dep_time,'DD/MM/YYYY'))) as DateUnique &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Table1"&lt;/P&gt;&lt;P&gt;WHERE dep_time&amp;gt;= '01/01/2012';&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;B:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT Season_DESCRIPTION, floor(date_BEGIN) as S_BEGIN, floor(date_END) as S_END&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM Table2 WHERE date_BEGIN&amp;gt;= '01/01/2011';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the graphic view I just want a table with all information of table A and a filter so that when I choose a season in B (ex: Winter 2014), it filters all rows in A where depature_time is between the date_begin and date_end of the season...&lt;/P&gt;&lt;P&gt;And I don't know how to interrelate these 2 tables ? In the script ? In the graphic view ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;My bests,&lt;/P&gt;&lt;P&gt;Quy Thanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 10:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interrelate-two-tables-with-dates/m-p/823366#M667833</guid>
      <dc:creator />
      <dc:date>2014-11-26T10:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrelate two tables with dates ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interrelate-two-tables-with-dates/m-p/823367#M667834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Quy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I upload an example using intervalmatch, hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 11:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interrelate-two-tables-with-dates/m-p/823367#M667834</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-26T11:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrelate two tables with dates ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interrelate-two-tables-with-dates/m-p/823368#M667835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;I've finaly did it; I had some issues with qualify / unqualify to recognize the right fields but It's OK now.&lt;/P&gt;&lt;P&gt;Thanks again !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interrelate-two-tables-with-dates/m-p/823368#M667835</guid>
      <dc:creator />
      <dc:date>2014-11-26T13:24:44Z</dc:date>
    </item>
  </channel>
</rss>

