<?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 Cross Join, where in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cross-Join-where/m-p/1778199#M1313361</link>
    <description>&lt;P&gt;I have a date table that contains every day of the year.&lt;BR /&gt;I would like to cross join that with time slices in another table that contains ID, start and end date!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It is an easy crossjoin with a where clause in SQL, but how to solve that in Qlikview??&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a solution that creates a cross Join in a temp table.&lt;/P&gt;&lt;P&gt;On have to filter in a second step and drop the temp table, but im not happy about that.&lt;/P&gt;&lt;P&gt;We are talking about 20 Months * 30 Days * 200000 DataSets = 120,000,000 Tuples in a temp table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a solution to use the&amp;nbsp; where clause in the first step while crossing the tables??&lt;/P&gt;&lt;P&gt;The interval join cannot be used here!&lt;/P&gt;&lt;P&gt;DO You have ideas? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**************************************************************************************************************************/&lt;/P&gt;&lt;P&gt;EventLog:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Time, Event, Comment&lt;BR /&gt;00:00, 0, Start of shift 1&lt;BR /&gt;01:18, 1, Line stop&lt;BR /&gt;02:23, 2, Line restart 50%&lt;BR /&gt;04:15, 3, Line speed 100%&lt;BR /&gt;08:00, 4, Start of shift 2&lt;BR /&gt;11:43, 5, End of production&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**************************************************************************************************************************/&lt;BR /&gt;OrderLog:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Start, End, Order&lt;BR /&gt;01:00, 03:35, A&lt;BR /&gt;02:30, 07:58, B&lt;BR /&gt;03:04, 10:27, C&lt;BR /&gt;07:23, 11:43, D&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**************************************************************************************************************************/&lt;BR /&gt;Result:&lt;BR /&gt;noConcatenate&lt;/P&gt;&lt;P&gt;load Time, Event&lt;BR /&gt;Resident EventLog;&lt;BR /&gt;&lt;BR /&gt;Join&lt;/P&gt;&lt;P&gt;load Start, End&lt;BR /&gt;Resident OrderLog;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;drop table OrderLog;&lt;BR /&gt;drop table EventLog;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**************************************************************************************************************************/&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Result_final:&lt;BR /&gt;load *&lt;BR /&gt;resident Result&lt;BR /&gt;Where ( Time &amp;gt;Start and Time &amp;lt; End);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;drop table Result;&lt;/P&gt;&lt;P&gt;EXIT SCRIPT;&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 18:19:17 GMT</pubDate>
    <dc:creator>danfuer123</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Cross Join, where</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-Join-where/m-p/1778199#M1313361</link>
      <description>&lt;P&gt;I have a date table that contains every day of the year.&lt;BR /&gt;I would like to cross join that with time slices in another table that contains ID, start and end date!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It is an easy crossjoin with a where clause in SQL, but how to solve that in Qlikview??&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a solution that creates a cross Join in a temp table.&lt;/P&gt;&lt;P&gt;On have to filter in a second step and drop the temp table, but im not happy about that.&lt;/P&gt;&lt;P&gt;We are talking about 20 Months * 30 Days * 200000 DataSets = 120,000,000 Tuples in a temp table.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a solution to use the&amp;nbsp; where clause in the first step while crossing the tables??&lt;/P&gt;&lt;P&gt;The interval join cannot be used here!&lt;/P&gt;&lt;P&gt;DO You have ideas? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**************************************************************************************************************************/&lt;/P&gt;&lt;P&gt;EventLog:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Time, Event, Comment&lt;BR /&gt;00:00, 0, Start of shift 1&lt;BR /&gt;01:18, 1, Line stop&lt;BR /&gt;02:23, 2, Line restart 50%&lt;BR /&gt;04:15, 3, Line speed 100%&lt;BR /&gt;08:00, 4, Start of shift 2&lt;BR /&gt;11:43, 5, End of production&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**************************************************************************************************************************/&lt;BR /&gt;OrderLog:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Start, End, Order&lt;BR /&gt;01:00, 03:35, A&lt;BR /&gt;02:30, 07:58, B&lt;BR /&gt;03:04, 10:27, C&lt;BR /&gt;07:23, 11:43, D&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**************************************************************************************************************************/&lt;BR /&gt;Result:&lt;BR /&gt;noConcatenate&lt;/P&gt;&lt;P&gt;load Time, Event&lt;BR /&gt;Resident EventLog;&lt;BR /&gt;&lt;BR /&gt;Join&lt;/P&gt;&lt;P&gt;load Start, End&lt;BR /&gt;Resident OrderLog;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;drop table OrderLog;&lt;BR /&gt;drop table EventLog;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/**************************************************************************************************************************/&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Result_final:&lt;BR /&gt;load *&lt;BR /&gt;resident Result&lt;BR /&gt;Where ( Time &amp;gt;Start and Time &amp;lt; End);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;drop table Result;&lt;/P&gt;&lt;P&gt;EXIT SCRIPT;&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 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-Join-where/m-p/1778199#M1313361</guid>
      <dc:creator>danfuer123</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cross Join, where</title>
      <link>https://community.qlik.com/t5/QlikView/Cross-Join-where/m-p/1778210#M1313365</link>
      <description>&lt;P&gt;perhaps this will help:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Moving-a-field-from-one-table-to-another-based-on-dates/m-p/1777829#M455019" target="_blank"&gt;Solved: Re: Moving a field from one table to another based... - Qlik Community - 1777543&lt;/A&gt;&lt;/P&gt;&lt;P&gt;there is a suggestion there that uses intervalmatch&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 18:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cross-Join-where/m-p/1778210#M1313365</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-28T18:16:19Z</dc:date>
    </item>
  </channel>
</rss>

