<?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 with Multiple tables and Slowly Changing Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intervalmatch-with-Multiple-tables-and-Slowly-Changing/m-p/57898#M9668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a query that is pulling from a huge dataset and is taking far too long to load or times out completely. I would like to try using Qlik instead of a query to load and join/filter the individual tables to see if the performance might be improved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wanting to replicate in Qlik what my SQL query is doing with JOINS and a BETWEEN CLAUSE. I think the solution lies in Intervalmatch, Slowly Changing Dimensions, and Bridge tables, but haven’t had any success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a simplified version. I have roughly 6-8 tables that join based on their individual table Id’s (ie. VendorId, ItemId, TransactionId, EventId, etc) and a Begin/End date relative to the Transaction Timestamp. The dates include dates and times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve included the SQL query and my simplified attempt in Qlik to join just the two largest tables (Transactions and Item tables) with Intervalmatch and a Bridge table. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a portion of the SQL query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp; DataWH.dbo.Transactions&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; LEFT JOIN DataWH.dbo.Item &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; ON Transactions.ItemId = Item.ItemId&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AND Item.BeginDate &amp;lt;= Transactions.[Timestamp]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AND (Item.EndDate &amp;gt;= Transactions.[Timestamp])&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;The above repeats for multiple tables.&amp;nbsp; Vendor table, Event table, etc.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2018 17:01:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-18T17:01:09Z</dc:date>
    <item>
      <title>Intervalmatch with Multiple tables and Slowly Changing Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-with-Multiple-tables-and-Slowly-Changing/m-p/57898#M9668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a query that is pulling from a huge dataset and is taking far too long to load or times out completely. I would like to try using Qlik instead of a query to load and join/filter the individual tables to see if the performance might be improved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wanting to replicate in Qlik what my SQL query is doing with JOINS and a BETWEEN CLAUSE. I think the solution lies in Intervalmatch, Slowly Changing Dimensions, and Bridge tables, but haven’t had any success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a simplified version. I have roughly 6-8 tables that join based on their individual table Id’s (ie. VendorId, ItemId, TransactionId, EventId, etc) and a Begin/End date relative to the Transaction Timestamp. The dates include dates and times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve included the SQL query and my simplified attempt in Qlik to join just the two largest tables (Transactions and Item tables) with Intervalmatch and a Bridge table. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a portion of the SQL query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp; DataWH.dbo.Transactions&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; LEFT JOIN DataWH.dbo.Item &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; ON Transactions.ItemId = Item.ItemId&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AND Item.BeginDate &amp;lt;= Transactions.[Timestamp]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AND (Item.EndDate &amp;gt;= Transactions.[Timestamp])&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;The above repeats for multiple tables.&amp;nbsp; Vendor table, Event table, etc.&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 17:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-with-Multiple-tables-and-Slowly-Changing/m-p/57898#M9668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T17:01:09Z</dc:date>
    </item>
  </channel>
</rss>

