<?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 Doing a two part QVD creation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204649#M61463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;thanks very much for that, the drop table command has helped no end. However this brings me onto another issue, now that I can create the QVD files I am finding when I load them to do analysis the load is timing out, also I end up with 3 synthetic tables. Have you got any further advice as to how to reduce the number of synthetic tables or improve the reading of the qvd's for analysis? At the moment I keep running out of RAM (not all the time, just sometimes), I've got 4gb in this pc and have no access to any more, any idea how to resolve this? Sorry to be plaguing you with questions! All help is much appreciated! Please see the new improved load qvd and reader qvd attached.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 10:34:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-08T10:34:23Z</dc:date>
    <item>
      <title>Doing a two part QVD creation</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204644#M61458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am currently using two seperate loads to create my final QVD's. My system is like this:&lt;/P&gt;&lt;P&gt;LOAD 1&lt;/P&gt;&lt;P&gt;load database 1 where x applies, save to temp1.qvd&lt;/P&gt;&lt;P&gt;load database 1 where y applies, save to temp 2.qvd&lt;/P&gt;&lt;P&gt;load database 1 where z applies, save to temp 3.qvd&lt;/P&gt;&lt;P&gt;LOAD 2&lt;/P&gt;&lt;P&gt;Leftjoin temp1, temp 2, temp 3 Save to data.qvd&lt;/P&gt;&lt;P&gt;My question is this, at the moment I have two seperate files, one for LOAD 1 and then another for LOAD 2 once load 1 has completed. Is there an easier way to set this up, so I have say one file that does both parts?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 17:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204644#M61458</guid>
      <dc:creator />
      <dc:date>2010-01-07T17:00:28Z</dc:date>
    </item>
    <item>
      <title>Doing a two part QVD creation</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204645#M61459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;The best approach depends on exactly what you are trying to achieve. The thing that jumps out is that you could just do:&lt;/P&gt;&lt;P&gt;load database 1 where (x or y or z) applies, save to data.qvd&lt;/P&gt;&lt;P&gt;But I presume it is not that straight forward?&lt;/P&gt;&lt;P&gt;If the data structure of all three temp QVDs are the same a concatenated load of all three QVDs into a single table and then a save would be very efficient, as an optimised QVD load could be performed.&lt;/P&gt;&lt;P&gt;If you can attach the actual load scripts rather than psuedo code then it will be a bit easier to suggest a solution.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 17:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204645#M61459</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2010-01-07T17:28:47Z</dc:date>
    </item>
    <item>
      <title>Doing a two part QVD creation</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204646#M61460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve, apologies, I think the two load scripts will make it clearer, it is somewhat complicated. The reason that the files have to be saved as sepeerate qvd's is that I want to be able to treat each of the selected types as a seperate column in the final qvw. Hope this helps!&lt;/P&gt;&lt;P&gt;Thankyou for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 17:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204646#M61460</guid>
      <dc:creator />
      <dc:date>2010-01-07T17:42:36Z</dc:date>
    </item>
    <item>
      <title>Doing a two part QVD creation</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204647#M61461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the 2nd part of the load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 17:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204647#M61461</guid>
      <dc:creator />
      <dc:date>2010-01-07T17:43:14Z</dc:date>
    </item>
    <item>
      <title>Doing a two part QVD creation</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204648#M61462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;From a quick look at your scripts I would say that the simple answer to your question is to issue a drop statement after each of the save statements. This will save memory and QlikView wasting effort building synthetic keys it doesn't need.&lt;/P&gt;&lt;P&gt;Budget:&lt;BR /&gt;CROSSTABLE (Period, [Budget], 7)&lt;BR /&gt;LOAD&lt;BR /&gt; GBCO as [Company],&lt;BR /&gt; GBAID as [Account ID],&lt;BR /&gt; [...]&lt;BR /&gt; GBAN12/100 as 12,&lt;BR /&gt; GBAN13/100 as 13;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM TRDTA.F0902 WHERE "GBLT" = 'BA' AND "GBFY" = '9';&lt;/P&gt;&lt;P&gt;Store Budget Into Data/Temp/1.qvd;&lt;/P&gt;&lt;P&gt;DROP TABLE Budget;&lt;/P&gt;&lt;P&gt;You would then be able to do the loads from QVD with joins (as you have it in the second file) in the same script as the first without any problems.&lt;BR /&gt;&lt;BR /&gt; However..... I would reccomend you keep your QVD building in a separate application to your analysis anyway. This is best practice, and it allows you to do multiple reloads of your front end document without going back to the source data. Also, I tend to build many QVD generation applications - so that they can be run independently. If you run QV Server 9 SR1 or above you can schedule one to run after the other anyway.&lt;/P&gt;&lt;P&gt;Furthermore, I would try doing the loads from QVDs into a single table with a CONCATENATE statement rather than a JOIN statement. I would imagine that this will run much quicker. It will give you many more rows in the resultant table, with a lot of the values being NULL, but these null values will be ignored when you do analysis.&lt;/P&gt;&lt;P&gt;Another thing you may want to consider is doing is putting the concatenate in at the QVD generation phase. The reason I suggest this is that this part of the load will be relatively slow anyway, and the concatenate will not be a big hit. When loading from QVD if you do not do any manipulation on the data it will load many times faster (search for 'QVD optimized' for details). If you have the requirement to only pull out certain types of data from the QVD stamp rows of each type with an identifier, thusly:&lt;/P&gt;&lt;P&gt;MainTable:&lt;BR /&gt;CROSSTABLE (Period, [Budget], &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; 'Budget' as RowType,&lt;BR /&gt; GBCO as [Company],&lt;BR /&gt; GBAID as [Account ID],&lt;BR /&gt; [...]&lt;BR /&gt;CONCATENTATE&lt;BR /&gt;CROSSTABLE (Period, [Actual Spend], &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; 'Actual' as RowType,&lt;BR /&gt; [...]&lt;BR /&gt;STORE MainTable INTO....&lt;/P&gt;&lt;P&gt;Sorry, that is probably far more detail than you were looking for, but I hope it is useful to you. Please note I have not tried out any of my code snippets, so they may need a bit of tweaking.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 21:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204648#M61462</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2010-01-07T21:44:01Z</dc:date>
    </item>
    <item>
      <title>Doing a two part QVD creation</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204649#M61463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;thanks very much for that, the drop table command has helped no end. However this brings me onto another issue, now that I can create the QVD files I am finding when I load them to do analysis the load is timing out, also I end up with 3 synthetic tables. Have you got any further advice as to how to reduce the number of synthetic tables or improve the reading of the qvd's for analysis? At the moment I keep running out of RAM (not all the time, just sometimes), I've got 4gb in this pc and have no access to any more, any idea how to resolve this? Sorry to be plaguing you with questions! All help is much appreciated! Please see the new improved load qvd and reader qvd attached.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 10:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204649#M61463</guid>
      <dc:creator />
      <dc:date>2010-01-08T10:34:23Z</dc:date>
    </item>
    <item>
      <title>Doing a two part QVD creation</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204650#M61464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is that new improved create qvd file, are these the changes you were suggesting?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 10:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204650#M61464</guid>
      <dc:creator />
      <dc:date>2010-01-08T10:36:44Z</dc:date>
    </item>
    <item>
      <title>Doing a two part QVD creation</title>
      <link>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204651#M61465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;Glad to hear that the drops helped. Having the synthetic keys in the analysis document will certainly cause issues. To avoid these you need to ensure that there is only one common field between any two tables. One way of acheiving this is to build composite keys to do the joins (eg. Period &amp;amp; ':' &amp;amp; AccountID as PeriodAccountID).&lt;/P&gt;&lt;P&gt;Another thing that I have spotted is that where you are attempting to Concatenate the Budget Description onto your main table this will not get attached to the rows with the data values in them. In order to attach those you will probably need to build a composite key with all four fields (Company, Account ID, Cost Centre and Object Account). I would advise looking at the MAPPING LOAD and ApplyMap statements to attach the description to the main table.&lt;/P&gt;&lt;P&gt;Good luck.&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 23:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doing-a-two-part-QVD-creation/m-p/204651#M61465</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2010-01-08T23:42:58Z</dc:date>
    </item>
  </channel>
</rss>

