<?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 data from files in an array. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-data-from-files-in-an-array/m-p/1396291#M612888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know its possible to load data from all files in a folder with a specific naming convention, ie *Data.qvd etc.&amp;nbsp; Is it possible to do something similar but use the file names from an array or table within QV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say load all data from :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:/Data/Jan_Sales.xls&lt;/P&gt;&lt;P&gt;C/Data/Feb_Sales.xls&lt;/P&gt;&lt;P&gt;C/Data/Mar_Sales_Adj.xls&lt;/P&gt;&lt;P&gt;Etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pulling data from multiple files over google drive and sometimes the files get renamed so would be simplier to correct in one location rather than multiple?&amp;nbsp; I'm sure you could do it with variables as well, but this would be cleaner for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 10:02:29 GMT</pubDate>
    <dc:creator>dmac1971</dc:creator>
    <dc:date>2017-09-22T10:02:29Z</dc:date>
    <item>
      <title>Load data from files in an array.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-files-in-an-array/m-p/1396291#M612888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know its possible to load data from all files in a folder with a specific naming convention, ie *Data.qvd etc.&amp;nbsp; Is it possible to do something similar but use the file names from an array or table within QV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say load all data from :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:/Data/Jan_Sales.xls&lt;/P&gt;&lt;P&gt;C/Data/Feb_Sales.xls&lt;/P&gt;&lt;P&gt;C/Data/Mar_Sales_Adj.xls&lt;/P&gt;&lt;P&gt;Etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pulling data from multiple files over google drive and sometimes the files get renamed so would be simplier to correct in one location rather than multiple?&amp;nbsp; I'm sure you could do it with variables as well, but this would be cleaner for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 10:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-files-in-an-array/m-p/1396291#M612888</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2017-09-22T10:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from files in an array.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-files-in-an-array/m-p/1396292#M612889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's possible, but it requires a variable as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// an array&lt;/P&gt;&lt;P&gt;For Each vFile in 'File1.xls','File2.xls','File3.xls'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * FROM [$(vFile)] (biff, ...etc ...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// a table, can be any kind of table loaded inline or from a text file, or excel file or database etc.&lt;/P&gt;&lt;P&gt;Files:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Filename&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;C:/Data/Jan_Sales.xls&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;C:/Data/Feb_Sales.xls&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;C:/Data/Mar_Sales_Adj.xls&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i =1 to NoOfRows(Files)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vFile = peek('Filename',$(i),'Files');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyTable:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * FROM [$(vFile)] (biff, ...etc ...);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 10:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-files-in-an-array/m-p/1396292#M612889</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-09-22T10:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from files in an array.</title>
      <link>https://community.qlik.com/t5/QlikView/Load-data-from-files-in-an-array/m-p/1396293#M612890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you appreciated, fairly simple when you see it like that.&amp;nbsp; Should improve my script greatly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dermot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 10:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-data-from-files-in-an-array/m-p/1396293#M612890</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2017-09-22T10:15:33Z</dc:date>
    </item>
  </channel>
</rss>

