<?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:QVD Generator Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226083#M78317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;thank you for your help. But can i do that not during the load process ?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 17:00:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-01T17:00:19Z</dc:date>
    <item>
      <title>QVD Generator Question</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226081#M78315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi my fellows,&lt;/P&gt;&lt;P&gt;i have a qvd generater that load a lot of csv files to build my datamodel. Recently we got a new column in the csv files that named "indicator".&lt;/P&gt;&lt;P&gt;The old csv file must anyhow also be load with the updated csv file.&lt;/P&gt;&lt;P&gt;year_2009.csv file contains example these columns: name, surname, age&lt;/P&gt;&lt;P&gt;year_2010.csv file contains these new added colum: indicatior&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the script loads the csv files together, it breaks down. How can i load the csv without an Error ?&lt;/P&gt;&lt;P&gt;I Thought like this: If the column indicator exists then write the content. If not then write the column with the value( ' n.A ' )&lt;/P&gt;&lt;P&gt;HEL_DATA:&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;name AS Namen,&lt;BR /&gt;surname AS Vornamen,&lt;BR /&gt;age AS Alter,&lt;BR /&gt;if (indicator &amp;gt;= 0 , indicator, 'n.A') ???&lt;/P&gt;&lt;P&gt;FROM year*.csv (utf8, txt, delimiter is ';', embedded labels, msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i realize that ?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 16:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226081#M78315</guid>
      <dc:creator />
      <dc:date>2010-10-01T16:33:21Z</dc:date>
    </item>
    <item>
      <title>QVD Generator Question</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226082#M78316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, you can use explicit concatenation to force QlikView to concatenate the cvs files eventhough they dont have the same structure. Please have a look to the attach qvw for better idea.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 16:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226082#M78316</guid>
      <dc:creator />
      <dc:date>2010-10-01T16:52:14Z</dc:date>
    </item>
    <item>
      <title>Re:QVD Generator Question</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226083#M78317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;thank you for your help. But can i do that not during the load process ?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226083#M78317</guid>
      <dc:creator />
      <dc:date>2010-10-01T17:00:19Z</dc:date>
    </item>
    <item>
      <title>Re:QVD Generator Question</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226084#M78318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont thik I understood your question, you can do that anywhere you want as long as it is in the script.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226084#M78318</guid>
      <dc:creator />
      <dc:date>2010-10-01T17:03:37Z</dc:date>
    </item>
    <item>
      <title>QVD Generator Question</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226085#M78319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think something like this should work. Note the chnage to the from line. This to prevent reading the labels from the file which will cause an error for the year2009.csv fie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;DATA:&lt;BR /&gt;LOAD @1 AS Namen,&lt;BR /&gt; @2 AS Vornamen,&lt;BR /&gt; @3 AS Alter,&lt;BR /&gt; If(Len(@4) = 0, 'NA', @4) AS Indicator&lt;BR /&gt;FROM year*.csv (utf8, txt, delimiter is ';', no labels, msq, header is 1 lines);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Oct 2010 17:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226085#M78319</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-02T17:03:20Z</dc:date>
    </item>
    <item>
      <title>QVD Generator Question</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226086#M78320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;i think you have the closest approch for my problem. The solution is near.&lt;/P&gt;&lt;P&gt;I want to load both files ( year_2009.csv , year_2010.csv) with one FROM command. Unfortunately the script above aborts, cause the first loaded year_2009.csv does not contain the column @4. Therfore i need something like a definition of cases.&lt;/P&gt;&lt;P&gt;case 1: if the column @4 does not exists ( example of the file 'year_2009.csv'), create a column @4 with the value 'nA'&lt;BR /&gt;case 2: if the column @4 exists ( example of the file 'year_2010.csv'), write the value as business as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226086#M78320</guid>
      <dc:creator />
      <dc:date>2010-10-04T11:15:43Z</dc:date>
    </item>
    <item>
      <title>QVD Generator Question</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226087#M78321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You shouldn't have any problems with that script - there is an example in the ZIP file that loads from two CSvs with the same columns as your original post. The only change is that the delimiter is a comma, rather than a semi-colon.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 11:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226087#M78321</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-04T11:33:03Z</dc:date>
    </item>
    <item>
      <title>QVD Generator Question</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226088#M78322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;thank you very much for your help. The source csvfile must be the problem. I upload my csv file.&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2010 13:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Generator-Question/m-p/226088#M78322</guid>
      <dc:creator />
      <dc:date>2010-10-04T13:27:03Z</dc:date>
    </item>
  </channel>
</rss>

