<?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: Join takes its time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270341#M1294252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No its not unique for the table. This is the tricky part, there is a unique set for each version of the data. So whenever the business adjusts the forecast values or the values for the facility we get a new version. However version and facility_id is unique in facility table and corresponds to 12 months of data in the forecast table, so 12 rows per facility per version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes version is the same but I have tried without version. I will try again. How can I apply mapp here? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2016 08:06:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-18T08:06:19Z</dc:date>
    <item>
      <title>Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270333#M1294236</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;Im trying to join these tables to get one fact table in order to compare different versions of a forecast. This is what I am trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facilities:13 000 rows&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;Forecast: 780 000 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it takes ages (1 hours) and they share only one key Facility_ID. Ive got 32 GB ram. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me understand whats going wrong? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270333#M1294236</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270334#M1294239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your script and the data model snapshot how it looks ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 21:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270334#M1294239</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-17T21:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270335#M1294242</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;why not doing it the other way around.&lt;/P&gt;&lt;P&gt;Forecast&lt;/P&gt;&lt;P&gt;left Join&lt;/P&gt;&lt;P&gt;Facilities&lt;/P&gt;&lt;P&gt;If you use few fields from Facilities, use applymap instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270335#M1294242</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-11-17T22:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270336#M1294244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;It looks like this from the start. Im just making a simple join like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forecast_temp:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facility_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Föränd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vers,&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Facility.QVD(qvd);&lt;/P&gt;&lt;P&gt;LEFT JOIN (Forecast_temp)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facility_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vers,&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Forecast.QVD(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144209_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270336#M1294244</guid>
      <dc:creator />
      <dc:date>2016-11-17T22:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270337#M1294246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Staffan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the other way. And also removing several fields. It still takes a lot of time. I am removing all the fields that I use Apply mapp on.&lt;/P&gt;&lt;P&gt;If concatenate it goes really fast. However I want for each facility its forecasted values (each month). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270337#M1294246</guid>
      <dc:creator />
      <dc:date>2016-11-17T22:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270338#M1294248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you dont use joins? Did you try like below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Facility:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facility_ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Föränd,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vers,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Facility.QVD(qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Forecast:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facility_ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Vers AS ForecastVers&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Forecast.QVD(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270338#M1294248</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-17T22:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270339#M1294250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You Join on two fields, FacilityID and Vers, do a composite key instead, FacilityID &amp;amp;'|'&amp;amp; Vers in both.&lt;/P&gt;&lt;P&gt;Forecast_temp:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facility_ID &amp;amp; '|' &amp;amp;Vers as %Key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Föränd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Facility.QVD(qvd);&lt;/P&gt;&lt;P&gt;LEFT JOIN (Forecast_temp)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facility_ID &amp;amp; '|' &amp;amp;Vers as %Key&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Forecast.QVD(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270339#M1294250</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-11-17T22:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270340#M1294251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Facility_ID a unique key to Facility.qvd? You have 13000 unique facilities? If it were not a unique key, it could easily explain what you're seeing. Say you had 130 unique facilities, 100 rows for each, some data fields that are different, even if they aren't different for the data you're using. For instance, the facilities table has a row per facility per month, and you have 100 months of history in the table. Then you'd see 78,000,000 rows being generated, which might take ages to load, and you definitely wouldn't have what you wanted when it finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also agree with Staffan with joining in the other direction. I'd agree with applymap too, but if the data is as described, and that's a unique key, this should go so fast you probably wouldn't notice any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I'm doubting the "they only share one key" bit when you have Vers being loaded from both QVDs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270340#M1294251</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-17T22:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270341#M1294252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No its not unique for the table. This is the tricky part, there is a unique set for each version of the data. So whenever the business adjusts the forecast values or the values for the facility we get a new version. However version and facility_id is unique in facility table and corresponds to 12 months of data in the forecast table, so 12 rows per facility per version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes version is the same but I have tried without version. I will try again. How can I apply mapp here? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 08:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270341#M1294252</guid>
      <dc:creator />
      <dc:date>2016-11-18T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270342#M1294253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I created a composite key of Facility_ID and version and loaded distinct values from the facility and works just fine now. However I would like your opinions about how to approach the rest, Apply map and only keep IDs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 08:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270342#M1294253</guid>
      <dc:creator />
      <dc:date>2016-11-18T08:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270343#M1294254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, is there a specific reason why you want to JOIN those tables into one in the Load script? It doesn't seem to be a large number of rows and QlikView should be able to handle the Join in memory with ease. After all, the Facilities table is just a Dimension table, just like you would treat a Customers or Products table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can still compare forecast versions from the actual facts table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 09:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270343#M1294254</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-11-18T09:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Join takes its time</title>
      <link>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270344#M1294255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that the facility table only applies to the forecast. The history table has its own facility information. I am not sure about how to approach this best. My first attempt was to normalize the forecast and then concatenate it with the historical values (1 fact table) and then connect them to the dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 10:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-takes-its-time/m-p/1270344#M1294255</guid>
      <dc:creator />
      <dc:date>2016-11-18T10:17:51Z</dc:date>
    </item>
  </channel>
</rss>

