<?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 Intervalmatch and Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intervalmatch-and-Join/m-p/1314381#M614482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables (capacity offer and fact table) which I would like to join.&lt;/P&gt;&lt;P&gt;(see attached excel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the &lt;SPAN style="font-size: 13.3333px;"&gt;capacity offer table I have the planned capacity per workcenter, day and time interval.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In the fact table I have the activities and duration for each activity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now I would like to create two new fields in the fact table (capacity offer 1 and capacity offer 2) where it should be checked if capaity is planned (check with table "capacity offer") and if yes the capacity offer information should be calculated: TimestampEndFact minus TimestampStartFact to get the corresponding capacity offer for this event. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Additionally if there is an event in fact table where I do not find a match in capacity offer table, the capacity offer should be 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have also the case that I have events which which are related to two intervals. Here I would like that it should be allocated to the interval relating to the Timestamp&lt;STRONG&gt;Start&lt;/STRONG&gt;Fact-field. (see line 54 in excel, where &lt;SPAN style="font-size: 13.3333px;"&gt;TimestampEndFact overlapps by 2 seconds to the next interval).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Technically I think it should work somehow with the intervalmatch funtion, but I have no clue how to connect and calculate the tables correctly.... Do anybody could help me here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your feedback!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2017 06:00:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-07-17T06:00:53Z</dc:date>
    <item>
      <title>Intervalmatch and Join</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-and-Join/m-p/1314381#M614482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables (capacity offer and fact table) which I would like to join.&lt;/P&gt;&lt;P&gt;(see attached excel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the &lt;SPAN style="font-size: 13.3333px;"&gt;capacity offer table I have the planned capacity per workcenter, day and time interval.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In the fact table I have the activities and duration for each activity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now I would like to create two new fields in the fact table (capacity offer 1 and capacity offer 2) where it should be checked if capaity is planned (check with table "capacity offer") and if yes the capacity offer information should be calculated: TimestampEndFact minus TimestampStartFact to get the corresponding capacity offer for this event. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Additionally if there is an event in fact table where I do not find a match in capacity offer table, the capacity offer should be 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have also the case that I have events which which are related to two intervals. Here I would like that it should be allocated to the interval relating to the Timestamp&lt;STRONG&gt;Start&lt;/STRONG&gt;Fact-field. (see line 54 in excel, where &lt;SPAN style="font-size: 13.3333px;"&gt;TimestampEndFact overlapps by 2 seconds to the next interval).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Technically I think it should work somehow with the intervalmatch funtion, but I have no clue how to connect and calculate the tables correctly.... Do anybody could help me here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your feedback!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 06:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-and-Join/m-p/1314381#M614482</guid>
      <dc:creator />
      <dc:date>2017-07-17T06:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch and Join</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-and-Join/m-p/1314382#M614483</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;Might extended Interval match suffice your problem.&lt;/P&gt;&lt;P&gt;Please find attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Balar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 09:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-and-Join/m-p/1314382#M614483</guid>
      <dc:creator>balar025</dc:creator>
      <dc:date>2017-07-17T09:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch and Join</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-and-Join/m-p/1314383#M614484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for my example it works! Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I have trouble with data records where I have available capacity, but no facts.&lt;/P&gt;&lt;P&gt;For example if you delete first two data records in fact table, it will start&amp;nbsp; on 01.11.2016&amp;nbsp; 01:06:48 AM.&lt;/P&gt;&lt;P&gt;From my capacity table I know that I have capacity also availabe for &lt;SPAN style="font-size: 13.3333px;"&gt;12:00:00 AM to &lt;SPAN style="font-size: 13.3333px;"&gt;01:06:47 AM.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any idea how to solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 12:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-and-Join/m-p/1314383#M614484</guid>
      <dc:creator />
      <dc:date>2017-07-17T12:41:38Z</dc:date>
    </item>
  </channel>
</rss>

