<?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 Load multiple QVD with different fields into one single table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320014#M706394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 18pt;"&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 18pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;The following script will assign NULL to missing values&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 18pt;"&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;Set&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;vConcatenate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; = ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;vFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;FileList&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;('MYDATA_*.qvd')&lt;BR /&gt; &lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;$(vConcatenate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;BR /&gt; &lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; [$(vFile)] (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;);&lt;BR /&gt; &lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;Set&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;vConcatenate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; = Concatenate;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;next&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;vFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;&lt;BR /&gt; &lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 18pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt; &lt;/SPAN&gt; &lt;SPAN style="font-family: Calibri;"&gt;If you really want zero in missing values instead, then you can do it by looping over dates instead. Wildcards in the filename works, but is not as flexible as a real for – next loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2012 15:23:19 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2012-01-31T15:23:19Z</dc:date>
    <item>
      <title>Load multiple QVD with different fields into one single table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320012#M706392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a folder with multiple QVD which are generated daily. Each file's name is MYDATA_[year][month][day].qvd. Each file contains the same number of fields and each field has the same name. Each file contains just one row. Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MYDATA_20120129.qvd&lt;/P&gt;&lt;P&gt;Data: 20120129&lt;/P&gt;&lt;P&gt;Field_A : Value_A&lt;/P&gt;&lt;P&gt;Field_B : Value_B&lt;/P&gt;&lt;P&gt;Field_C : Value_C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I introduce a change on Jan 30th, so the files have now a new field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MYDATA_20120130.qvd&lt;/P&gt;&lt;P&gt;Data: 20120130&lt;/P&gt;&lt;P&gt;Field_A : Value_A&lt;/P&gt;&lt;P&gt;Field_B : Value_B&lt;/P&gt;&lt;P&gt;Field_C : Value_C&lt;/P&gt;&lt;P&gt;Field_D : Value_D &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when I try to load each file in a single QV, the Field_D cannot be found on each file, obviously, and the load fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM C:\MYDATA_*.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to add the "WHERE EXISTS(Field_D)" unsuccessfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to load files dated prior to January 30th with fields A, B, C and assigning default value 0 to field D; and load files dated after January 30th with fields A,B,C and D into one single table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has an idea?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 10:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320012#M706392</guid>
      <dc:creator />
      <dc:date>2012-01-31T10:02:44Z</dc:date>
    </item>
    <item>
      <title>Load multiple QVD with different fields into one single table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320013#M706393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that's the issue is the group load of n QVD using * in the filename, when all the QVD have not the same number of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can:&lt;/P&gt;&lt;P&gt;- do 2 steps of load, 1 for the dates prior to January 30th and 1 for dates after, but you can't use * in the file name so.&lt;/P&gt;&lt;P&gt;- do a loop on the files and concatenate the content, then you won't have error. You can fill a missing field with "&lt;EM&gt;NullAsValue 'FIELDNAME'; Set NullValue = 0;&lt;/EM&gt;" before the load and "&lt;EM&gt;NullAsNull 'FIELDNAME';&lt;/EM&gt;" after.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 10:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320013#M706393</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-01-31T10:56:55Z</dc:date>
    </item>
    <item>
      <title>Load multiple QVD with different fields into one single table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320014#M706394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 18pt;"&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 18pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;The following script will assign NULL to missing values&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 18pt;"&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;Set&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;vConcatenate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; = ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;for&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;vFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;FileList&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;('MYDATA_*.qvd')&lt;BR /&gt; &lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;$(vConcatenate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;BR /&gt; &lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; [$(vFile)] (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;);&lt;BR /&gt; &lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;Set&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;vConcatenate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; = Concatenate;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; Courier New&amp;amp;quot: ; color: blue; font-size: 9pt; font-family: &amp;amp;quot;"&gt;next&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: gray; font-size: 9pt; font-family: &amp;amp;quot;"&gt;vFile&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;&lt;BR /&gt; &lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 18pt;"&gt;&lt;SPAN style="font-family: Calibri;"&gt; &lt;/SPAN&gt; &lt;SPAN style="font-family: Calibri;"&gt;If you really want zero in missing values instead, then you can do it by looping over dates instead. Wildcards in the filename works, but is not as flexible as a real for – next loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 15:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320014#M706394</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-01-31T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load multiple QVD with different fields into one single table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320015#M706395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, thanks to Henric, I found the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field_A, Field_B, Field_C, Field_D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR EACH vFile in FileList('C:\MYDATA_*.qvd')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * FROM [$(vFile)] (qvd);&lt;/P&gt;&lt;P&gt;NEXT vFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 12:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-QVD-with-different-fields-into-one-single-table/m-p/320015#M706395</guid>
      <dc:creator />
      <dc:date>2012-02-03T12:53:16Z</dc:date>
    </item>
  </channel>
</rss>

