<?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: Load qvd-files with a join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611599#M225701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First load all the qvd's into one table, then do the join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 15:38:45 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-02-05T15:38:45Z</dc:date>
    <item>
      <title>Load qvd-files with a join</title>
      <link>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611597#M225699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;Now do I load my application with a script as below. though these tex files are 
rather big my intention is to create qvd-files of them. The only problem is the 
update for the sales reps which is managed by the join load today.
The structure of the qvd-files is like 'Invoice:'
I wonder if I can do that join load with the qvd-files instead ? Like:

load * from I:\Statistik\QVA\Datafiles\2008\StatKomp2008_gen.qvd (qvd)
join load cunumber1,SalesRep1,SalesRep2 resident Customer_read;

If I can load as above do I have to make the join after every qvd-file ?




This is the script that runs and works today

Invoice_Temp:
LOAD [@1:8] as inv_period1, 

.
.
.
from I:\Statistik\QVA\Datafiles\2013\stat13_All_Dat.txt (ansi, fix, no labels, header is 0, record is line)
 where [@216:223T]&amp;lt;&amp;gt;'GEG';
 join load cunumber1,SalesRep1,SalesRep2 resident Customer_read;

Invoice:
Load inv_period1 as inv_period,
.
.
if(inv_type1='L',SalesRep1,SalesRep2) as inv_salesman,

resident Invoice_Temp
where left(StatHierarki1,2)&amp;lt;&amp;gt;'17' ;


drop table Invoice_Temp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 15:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611597#M225699</guid>
      <dc:creator />
      <dc:date>2014-02-05T15:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load qvd-files with a join</title>
      <link>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611598#M225700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am understanding correctly, what you need is a Incremental Load instead of reloading the same data everyday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this amazing document about how to do it: &lt;A href="https://community.qlik.com/docs/DOC-5508"&gt;Incremental Load.docx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 15:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611598#M225700</guid>
      <dc:creator>luis_pimentel</dc:creator>
      <dc:date>2014-02-05T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Load qvd-files with a join</title>
      <link>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611599#M225701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First load all the qvd's into one table, then do the join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 15:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611599#M225701</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-02-05T15:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load qvd-files with a join</title>
      <link>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611600#M225702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Håkan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am given very large CSVs to work with I will generally create QVD's of the CSV files with no manipulation on them at all.&amp;nbsp; Simply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CSVFile:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM MyCSV.csv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(... format fields ...);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STORE CSVFile INTO MyQVD.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QVD's can then be used in exactly the same way as the CSV's were in the load script, just the load will be significantly quicker as the QVD files will be many times smaller than the source CSV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that you have a fixed width file, so the * will need to be replaced with the field definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having too many JOINs and RESIDENT loads in a script can make it slower.&amp;nbsp; See if you can do the join from the QVD in one go - rather than loading into a temporary table first.&amp;nbsp; Also, you may find that a number of &lt;STRONG&gt;ApplyMap&lt;/STRONG&gt; statements work more efficiently than the JOIN - you will certainly get more control over the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 15:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-qvd-files-with-a-join/m-p/611600#M225702</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-02-05T15:38:48Z</dc:date>
    </item>
  </channel>
</rss>

