<?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 Add a column to existing QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240502#M713986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just had a similar situation, where in QVD files over time, fields may well get added in or removed, causing Qlikview to have different fields, for different QVD files and causing the Filelist qvd looping trick to stop working.&amp;nbsp; I resolved my issues with a similar script to this:&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Markets QVD Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vTablesLoaded&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;EACH&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;File&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt; &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FILELIST&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; ('$(vDirectory)\Markets\*.qvd')&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;IF&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vTablesLoaded)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; Markets:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; [$(File)] (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vTablesLoaded&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;ELSE&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; [$(File)] (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;File &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I essentially added in a control variable to dictate which file is a first load into Qlikview and which is a subsequent one (in that same table).&amp;nbsp; Then using an IF statement controlled the LOAD statements by setting the first one to be a standard load and the subsequent ones to be forced concatenations.&amp;nbsp; This has the effect of delivering a NULL value to the column if there was no data for the period or QVD in question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a play with that and see if you can get something working.&amp;nbsp; For clarity, I have a Gender field added to some subsequent loads and now when I look at the front end any model which didn't have the Gender field in just greys out the Gender field, indicating null values, whilst all other models are able to use the field successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Paul Dutton&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 15:37:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-18T15:37:05Z</dc:date>
    <item>
      <title>Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240491#M713975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my script to load data from a QVD i created before hand. However i would like to add another column in this script and all the values in this new column will be the same.&lt;/P&gt;&lt;P&gt;So i need to add another column called FUND and it should be populated with SPRS for all the values.&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;P style="font-style: italic"&gt;PCPCapTable:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;AffPdExt &lt;B&gt;as&lt;/B&gt; DateofService &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;FROM&lt;/B&gt; &lt;P&gt;qvd\PCPCapTableMCRProject.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 22:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240491#M713975</guid>
      <dc:creator />
      <dc:date>2010-05-13T22:49:59Z</dc:date>
    </item>
    <item>
      <title>Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240492#M713976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Try with this:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;B&gt;AffPdExt&lt;/B&gt; &lt;B&gt;as&lt;/B&gt; DateofService,&lt;/P&gt;&lt;P style="font-weight: bold"&gt;FUND AS SPRS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;FROM&lt;/B&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;qvd\PCPCapTableMCRProject.qvd&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P&gt;&lt;B&gt;(&lt;/B&gt;qvd);&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Regards,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 22:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240492#M713976</guid>
      <dc:creator />
      <dc:date>2010-05-13T22:52:29Z</dc:date>
    </item>
    <item>
      <title>Re:Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240493#M713977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunetly that did not work. It errors out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 23:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240493#M713977</guid>
      <dc:creator />
      <dc:date>2010-05-13T23:00:40Z</dc:date>
    </item>
    <item>
      <title>Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240494#M713978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Share you application. I can help you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 23:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240494#M713978</guid>
      <dc:creator />
      <dc:date>2010-05-13T23:06:21Z</dc:date>
    </item>
    <item>
      <title>Re:Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240495#M713979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For security reasons i cannot but the script is pretty simple. I just need to add the extra column.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 23:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240495#M713979</guid>
      <dc:creator />
      <dc:date>2010-05-13T23:14:08Z</dc:date>
    </item>
    <item>
      <title>Re:Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240496#M713980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this? Or did you want to put the column IN the QVD itself, not just in your application?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Directory;&lt;BR /&gt;PCPCapTable:&lt;BR /&gt;LOAD&lt;BR /&gt; AffPdExt as DateofService&lt;BR /&gt;&lt;STRONG&gt;,'SPRS' as FUND&lt;BR /&gt;&lt;/STRONG&gt;FROM qvd\PCPCapTableMCRProject.qvd (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 23:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240496#M713980</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-13T23:39:32Z</dc:date>
    </item>
    <item>
      <title>Re:Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240497#M713981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you this worked.&lt;/P&gt;&lt;P&gt;Initially i tried this but i had the "comma" after the word date of service instead of at the beginning of the next line. Weird how that works.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 23:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240497#M713981</guid>
      <dc:creator />
      <dc:date>2010-05-13T23:49:13Z</dc:date>
    </item>
    <item>
      <title>Re:Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240498#M713982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The position of the comma actually shouldn't make any difference, so maybe it was just a typo or something. Anyway, glad you got it working now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 23:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240498#M713982</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-13T23:56:00Z</dc:date>
    </item>
    <item>
      <title>Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240499#M713983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have daily QVD files for 3 years. I need to add a couple of columns to each of them with default value (NULL actually). Can I do this without reloading the data? Otherwise it will be huge amount of data and time to do this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 15:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240499#M713983</guid>
      <dc:creator />
      <dc:date>2011-08-01T15:45:07Z</dc:date>
    </item>
    <item>
      <title>Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240500#M713984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can do this reliably without reading and writing each QVD. You can do that in a filelist loop pretty easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on how you are reading these old files, you may consider just introducing the new field as it's needed by someone consuming the old qvd. you can proably detect that the field is missing by checking something like QvdNoOfFields().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 00:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240500#M713984</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-08-02T00:10:21Z</dc:date>
    </item>
    <item>
      <title>Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240501#M713985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I know this. I have such script. But to reload all of these files it can take about a week. I thought about some easier way to do this like changing a QVD file header or so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 00:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240501#M713985</guid>
      <dc:creator />
      <dc:date>2011-08-02T00:47:00Z</dc:date>
    </item>
    <item>
      <title>Add a column to existing QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240502#M713986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just had a similar situation, where in QVD files over time, fields may well get added in or removed, causing Qlikview to have different fields, for different QVD files and causing the Filelist qvd looping trick to stop working.&amp;nbsp; I resolved my issues with a similar script to this:&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Markets QVD Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vTablesLoaded&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;FOR&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;EACH&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;File&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt; &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FILELIST&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; ('$(vDirectory)\Markets\*.qvd')&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;IF&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vTablesLoaded)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; Markets:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; [$(File)] (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vTablesLoaded&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 1;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;ELSE&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; [$(File)] (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;ENDIF&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;File &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I essentially added in a control variable to dictate which file is a first load into Qlikview and which is a subsequent one (in that same table).&amp;nbsp; Then using an IF statement controlled the LOAD statements by setting the first one to be a standard load and the subsequent ones to be forced concatenations.&amp;nbsp; This has the effect of delivering a NULL value to the column if there was no data for the period or QVD in question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a play with that and see if you can get something working.&amp;nbsp; For clarity, I have a Gender field added to some subsequent loads and now when I look at the front end any model which didn't have the Gender field in just greys out the Gender field, indicating null values, whilst all other models are able to use the field successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Paul Dutton&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 15:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-column-to-existing-QVD/m-p/240502#M713986</guid>
      <dc:creator />
      <dc:date>2011-11-18T15:37:05Z</dc:date>
    </item>
  </channel>
</rss>

