<?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: Dynamically add the new columns in QVD? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627754#M230634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this excellent solution. Learnt a new concept as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have a problem here as well. I can't use a '*' in Load Script as I am doing some field transformations. So, I have to list down all the fields in the Load Script.&lt;/P&gt;&lt;P&gt;Can this be tweaked some how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 08:59:47 GMT</pubDate>
    <dc:creator>dmohanty</dc:creator>
    <dc:date>2014-05-09T08:59:47Z</dc:date>
    <item>
      <title>Dynamically add the new columns in QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627750#M230630</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;I have a requirement like this below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a common folder, I have some new and old versions QVD, that are coming from SAME TABLE. The difference is that (for example), the OLD QVD has 2 fields: ID, Sales and the NEW QVD has ID, Name, Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the Load script in Data Model as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;from .... *.QVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script will fetch the data from all the NEW and OLD qvds from that folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My requirement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviuosly the Load Script is failing where the script is fetching data from OLD qvd, as 'Name' is not available. So I want the functionaliy to be like this: &lt;STRONG&gt;It will search for all the fields in the QVD; IF AVAILABLE, then load the data into QV&amp;nbsp; and IF NOT AVAILABLE, the Dynamically create the Field and load the script. So that no error should come.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear. Could someone please help on this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 07:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627750#M230630</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2014-05-09T07:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add the new columns in QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627751#M230631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try with * key word and the fields that not required drop them like &lt;STRONG&gt;&lt;EM&gt;Drop Field FieldName;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;from .... *.QVD (qvd);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 08:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627751#M230631</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-05-09T08:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add the new columns in QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627752#M230632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will have to use a loop to load each qvd file and explicitly concatenate the loads. Something like this should do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13996229205085564" jivemacro_uid="_13996229205085564"&gt;
&lt;P&gt;Set vConcatenate = ;&lt;/P&gt;
&lt;P&gt;sub ScanFolder(Root)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each FileExtension in '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; for each FoundFile in filelist( Root &amp;amp; '\*.' &amp;amp; FileExtension)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileList:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vConcatenate)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *, '$(FoundFile)' as SourceFile&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(FoundFile)] (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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set vConcatenate = 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; next FoundFile&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next FileExtension&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each SubDirectory in dirlist( Root &amp;amp; '\*' )&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;&amp;nbsp; call ScanFolder(SubDirectory)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next SubDirectory&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Call ScanFolder('C:\QV_APP1\QVD_FILES') ;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code above is adapted from an example &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt; posted in this discussion: &lt;A href="https://community.qlik.com/thread/62449"&gt;loop through to load all files from a folder and its subfolders?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 08:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627752#M230632</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-05-09T08:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add the new columns in QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627753#M230633</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;First load the sources using LOAD * and collect into a single table. Then resuident load that table and fill in the null Names with the default value. Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data1:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Load &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;* &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="line-height: 1.5em; font-size: 10pt;"&gt;from .... *.QVD (qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Data2:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNull(Name), 'Default Name', Name) As Name,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Resident Data1;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Drop Table Data1;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 08:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627753#M230633</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-09T08:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add the new columns in QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627754#M230634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this excellent solution. Learnt a new concept as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have a problem here as well. I can't use a '*' in Load Script as I am doing some field transformations. So, I have to list down all the fields in the Load Script.&lt;/P&gt;&lt;P&gt;Can this be tweaked some how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 08:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627754#M230634</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2014-05-09T08:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add the new columns in QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627755#M230635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan for this kind help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I am loading the all the data sources into a single table, actually in QV they are becoming 2 set of tables.&lt;/P&gt;&lt;P&gt;1st table (Table) has ID, Sales&lt;/P&gt;&lt;P&gt;2nd table (Table-1) has ID, Name, Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I am&amp;nbsp; doing a resident from Table, 'Name' is not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 09:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627755#M230635</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2014-05-09T09:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add the new columns in QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627756#M230636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Gysbert's script in place of the first load, then follow with the second part of my post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 10:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627756#M230636</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-09T10:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically add the new columns in QVD?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627757#M230637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert and Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all these kind help. Really appreciate!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 09:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-add-the-new-columns-in-QVD/m-p/627757#M230637</guid>
      <dc:creator>dmohanty</dc:creator>
      <dc:date>2014-05-11T09:04:41Z</dc:date>
    </item>
  </channel>
</rss>

