<?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 Import files containing multiple tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339339#M705662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd probably look for an external ltext-file-splitting program first.&amp;nbsp; If you get no joy there then maybe something combining RecNo() to count records loaded and Peek() to get the last one, with While...Field1&amp;lt;&amp;gt;NewTableName or something...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2012 12:27:22 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-04-05T12:27:22Z</dc:date>
    <item>
      <title>Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339338#M705661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,I'm quite new to QV and have been assigned a task where I must import multiple tables residing in one file (it's large tab-sep. textfile often containing several hundred thousand lines). Every table starts with a new line containing the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched the forum and the help-section but haven't been able to figure out how to do this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 12:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339338#M705661</guid>
      <dc:creator />
      <dc:date>2012-04-05T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339339#M705662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd probably look for an external ltext-file-splitting program first.&amp;nbsp; If you get no joy there then maybe something combining RecNo() to count records loaded and Peek() to get the last one, with While...Field1&amp;lt;&amp;gt;NewTableName or something...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 12:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339339#M705662</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-04-05T12:27:22Z</dc:date>
    </item>
    <item>
      <title>Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339340#M705663</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;you can use the option Table Files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image 01.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/12731_Image+01.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select your file and configure how do you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image 02.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/12732_Image+02.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;If you can not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;extract the data&lt;/SPAN&gt;&lt;SPAN&gt;, could&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;provide&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;an&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;example of the format&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of your file&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with little information&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;so we can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;better evaluate&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 13:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339340#M705663</guid>
      <dc:creator />
      <dc:date>2012-04-05T13:25:32Z</dc:date>
    </item>
    <item>
      <title>Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339341#M705664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the pattern that identifies a new table? And does each table have the same or differenent fieldlist? Cna you provide a small example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 17:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339341#M705664</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-04-05T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339342#M705665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each table is preceded by a line with pattern "newRecord\t". Each table is different. Different number of fields.&amp;nbsp; What I would like is soemthing like below (written in c#). Can this be done?&amp;nbsp; string tableSplit = "newRecord\t" string[] tableNames = { "transactions", "items", etc } foreach (string table in tableNames) {&amp;nbsp;&amp;nbsp;&amp;nbsp; bool[] doImport = { false, true }&amp;nbsp;&amp;nbsp;&amp;nbsp; var reader = new streamReader(file)&amp;nbsp;&amp;nbsp;&amp;nbsp; int i = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; for (String line = reader.ReadLine();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line != null &amp;amp;&amp;amp; doImport[0] &amp;amp;&amp;amp; !doImport[1];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line = reader.ReadLine()) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (doImport[0] &amp;amp;&amp;amp; doImport[1])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImportTableData(line) // here is where data is loaded..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (line.startsWith(tableSplit)) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doImport&lt;I&gt; = line.startsWith(tableSplit+tableName)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (doImport&lt;I&gt;) i++&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; } }&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 18:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339342#M705665</guid>
      <dc:creator />
      <dc:date>2012-04-05T18:16:24Z</dc:date>
    </item>
    <item>
      <title>Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339343#M705666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a few sample rows of the input data? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 18:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339343#M705666</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-04-05T18:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339344#M705667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, of course! Here is a small sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 18:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339344#M705667</guid>
      <dc:creator />
      <dc:date>2012-04-05T18:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339345#M705668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was a pretty interesting and challenging problem. I found a few ways to tackle the problem and learned about some qlikview quirks along the way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your eventual solution may depend on how you want to load the fields of each subfile. Attached in the most straightforward solution I found. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 22:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339345#M705668</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-04-08T22:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Import files containing multiple tables</title>
      <link>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339346#M705669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, very much appreciated! Glad that I could give you a little challenge &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You really gave my work a needed boost here because I didn't really know how to approach the problem. I will go with this solution and see how it turns out when I test it on production files later today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks!&lt;/P&gt;&lt;P&gt;-Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 07:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Import-files-containing-multiple-tables/m-p/339346#M705669</guid>
      <dc:creator />
      <dc:date>2012-04-10T07:16:51Z</dc:date>
    </item>
  </channel>
</rss>

