<?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 data when there is a new column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1958812#M1220000</link>
    <description>&lt;P&gt;Thank you so much ! It is working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 10:24:04 GMT</pubDate>
    <dc:creator>kasiugaa</dc:creator>
    <dc:date>2022-07-21T10:24:04Z</dc:date>
    <item>
      <title>Load data when there is a new column</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1958243#M1219989</link>
      <description>&lt;P&gt;Hi again.&lt;/P&gt;
&lt;P&gt;I have a problem with loading data.&amp;nbsp;I have qvd files from the last 2 years: File_2021_01_01, File_2021_01_02, ...., File_2022_07_20. I load only 5 columns from each file.&lt;/P&gt;
&lt;P&gt;From June this year, I have to load one new, additional column (it did not exist before). Do you know how I can load it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't use: "load * from" because there are 30 columns in each file. It will take a long time to load all columns from the last 2 years.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 11:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1958243#M1219989</guid>
      <dc:creator>kasiugaa</dc:creator>
      <dc:date>2022-07-20T11:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Load data when there is a new column</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1958468#M1219992</link>
      <description>&lt;P&gt;If the files always have the same form of name, e.g. "File_2021_01_01.qvd", I would do something along the following:&lt;/P&gt;&lt;P&gt;For each vFileName in Filelist ('C:\Path\File_*.qvd')&lt;BR /&gt;Let vShortFileName = SubField(vFileName,'\',-1) ;&lt;BR /&gt;Let vDate = Date#(TextBetween(vShortFileName,'_','.'),'YYYY_MM_DD') ;&lt;BR /&gt;Let vSixthField = If(vDate&amp;gt;=MakeDate(2022,6),'Field6,','') ;&lt;BR /&gt;Set vConcatenate = ;&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;$(vConcatenate)&lt;BR /&gt;Load&lt;BR /&gt;$(vSixthField)&lt;BR /&gt;'$(vFileName)' as FileName,&lt;BR /&gt;'$(vDate)' as FileDate,&lt;BR /&gt;Field1,Field2,Field3,Field4,Field5&lt;BR /&gt;From [$(vFileName)] (qvd);&lt;BR /&gt;Set vConcatenate = Concatenate;&lt;BR /&gt;Next vFileName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the&amp;nbsp;$(vSixthField) will expand to nothing before June and to 'Field6,' after June, thus loading the extra field.&lt;/P&gt;&lt;P&gt;The dollar expansions will make the syntax checker go crazy, but it is possible to run the script anyway.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 15:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1958468#M1219992</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-07-20T15:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load data when there is a new column</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1958812#M1220000</link>
      <description>&lt;P&gt;Thank you so much ! It is working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 10:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1958812#M1220000</guid>
      <dc:creator>kasiugaa</dc:creator>
      <dc:date>2022-07-21T10:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load data when there is a new column</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1963167#M1220234</link>
      <description>&lt;P&gt;No sorry. Now I reload whole code and I have a problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours solucion creates two tables:&lt;BR /&gt;&lt;SPAN&gt;Table and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Table-1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In next step, when I am trying to select new column from&amp;nbsp;&lt;SPAN&gt;Table, I have an error that it is not exist. So I tried to do concatinate those two tables, but then I have an error that Table-1 is not exist.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am thinking, that maybe I should do two loads: first before June with 'N/A' as NewColumn and the second one for files after June with new column. And then concatenate them. But I don't know how to do that.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I found the solution. "Set vConcatenate = ;" should be in first line &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 12:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-when-there-is-a-new-column/m-p/1963167#M1220234</guid>
      <dc:creator>kasiugaa</dc:creator>
      <dc:date>2022-08-02T12:30:03Z</dc:date>
    </item>
  </channel>
</rss>

