<?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 Load from multiple text files (dynamic) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176384#M713457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Jesper.&lt;/P&gt;&lt;P&gt;PayrollTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;mid(filename( ), 13, 5) AS WeekNumberData&lt;/P&gt;&lt;P&gt;FROM Payroll_week*.txt (....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 13:36:37 GMT</pubDate>
    <dc:creator>sparur</dc:creator>
    <dc:date>2010-06-04T13:36:37Z</dc:date>
    <item>
      <title>Load from multiple text files (dynamic)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176383#M713456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my payroll system, every two weeks a text file is created, which I need to load into qlikview&lt;/P&gt;&lt;P&gt;The text files are all stored in the same hard drive folder (C:\textfiles\) and are named&lt;/P&gt;&lt;P&gt;Payroll_week13-14.txt&lt;BR /&gt;Payroll_week15-16.txt&lt;/P&gt;&lt;P&gt;The format of the files are completely the same, and they all need to be concatenated into the same Qlikview table.&lt;/P&gt;&lt;P&gt;How do I create a load statement that dynamically loads ALL text files, no matter if there are 3 or 300 in the folder?&lt;BR /&gt;I also need a datafield in the qlikview table that contains the source file name.&lt;/P&gt;&lt;P&gt;Please help. [:D]&lt;/P&gt;&lt;P&gt;regards, Jesper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 13:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176383#M713456</guid>
      <dc:creator />
      <dc:date>2010-06-04T13:22:11Z</dc:date>
    </item>
    <item>
      <title>Load from multiple text files (dynamic)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176384#M713457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Jesper.&lt;/P&gt;&lt;P&gt;PayrollTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;mid(filename( ), 13, 5) AS WeekNumberData&lt;/P&gt;&lt;P&gt;FROM Payroll_week*.txt (....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 13:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176384#M713457</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-06-04T13:36:37Z</dc:date>
    </item>
    <item>
      <title>Load from multiple text files (dynamic)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176385#M713458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesper,&lt;/P&gt;&lt;P&gt;somthing like this should do the trick:&lt;/P&gt;&lt;P&gt;Directory C:\MyData\TXT;&lt;/P&gt;&lt;P&gt;For each txtFile in filelist ('*.txt')&lt;/P&gt;&lt;P&gt;MyTable:&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;Field1,&lt;/P&gt;&lt;P&gt;Field2,&lt;BR /&gt; '$(txtFile)' as Name,&lt;BR /&gt; FileName('$(txtFile)') as FileName,&lt;BR /&gt; FileSize('$(txtFile)') as Size,&lt;BR /&gt; FileTime( '$(txtFile)') as FileTime&lt;BR /&gt; From '$(txtFile)' ;&lt;BR /&gt;&lt;BR /&gt; NEXT txtFile;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 13:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176385#M713458</guid>
      <dc:creator />
      <dc:date>2010-06-04T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Load from multiple text files (dynamic)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176386#M713459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx guys, i'll give it a go!&lt;/P&gt;&lt;P&gt;jesper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 08:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176386#M713459</guid>
      <dc:creator />
      <dc:date>2010-06-08T08:02:31Z</dc:date>
    </item>
    <item>
      <title>Load from multiple text files (dynamic)</title>
      <link>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176387#M713460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a problem with the FROM syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can doFROM Payroll_*.txt if my filename is Payroll_xyz.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it wont work if the filename is Payroll_xyz_2011-08-05.txt.&lt;/P&gt;&lt;P&gt;is this normal? or something is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;mid(filename( ), 13, 5) AS WeekNumberData&lt;/P&gt;&lt;P&gt;FROM Payroll_week*.txt (....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 05:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-from-multiple-text-files-dynamic/m-p/176387#M713460</guid>
      <dc:creator />
      <dc:date>2011-08-05T05:55:45Z</dc:date>
    </item>
  </channel>
</rss>

