<?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 Loading csv files from multiple folders in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774905#M717401</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to load same structure csv files from 3 different folders locatted in on folder.&lt;/P&gt;&lt;P&gt;(3 stores of , each has its own sales csv files)&lt;/P&gt;&lt;P&gt;Also i need to gave the option to choose how many days of csv files i am uploading. (Each csv by its creation date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 23:35:17 GMT</pubDate>
    <dc:creator>fishmanl</dc:creator>
    <dc:date>2021-01-15T23:35:17Z</dc:date>
    <item>
      <title>Loading csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774905#M717401</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to load same structure csv files from 3 different folders locatted in on folder.&lt;/P&gt;&lt;P&gt;(3 stores of , each has its own sales csv files)&lt;/P&gt;&lt;P&gt;Also i need to gave the option to choose how many days of csv files i am uploading. (Each csv by its creation date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 23:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774905#M717401</guid>
      <dc:creator>fishmanl</dc:creator>
      <dc:date>2021-01-15T23:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loading csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774922#M717402</link>
      <description>&lt;P&gt;You can loop through files and folder using&amp;nbsp; for each loops. And use filetime() to check the date of your file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try something like the sample I have typed below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each _folder in 'location/1', 'location/2', 'location/3'&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each _csv in filelist ('$(_folder) /*.csv')&lt;/P&gt;&lt;P&gt;If filetime('$(_csv)') &amp;gt; dayname(today() - 21) then&lt;/P&gt;&lt;P&gt;Load * from [$(_csv)] (txt);&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;Next _csv&lt;/P&gt;&lt;P&gt;Next _folder&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 08:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774922#M717402</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-01-16T08:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Loading csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774932#M717403</link>
      <description>&lt;P&gt;thank you for the replay.&lt;/P&gt;&lt;P&gt;im kind new to Qlik , can you be more spacific please?&lt;/P&gt;&lt;P&gt;the main folder is: '\\182.19.38.22\Data\BiFiles\'&lt;/P&gt;&lt;P&gt;the 3 folders located in this main folder are: LM,LN,LT&lt;/P&gt;&lt;P&gt;and the files in each:&amp;nbsp;SalesDetail_*.csv&lt;/P&gt;&lt;P&gt;can you please write the full syntacs?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 10:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774932#M717403</guid>
      <dc:creator>fishmanl</dc:creator>
      <dc:date>2021-01-16T10:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774938#M717404</link>
      <description>&lt;P&gt;and if its possible i want the folders to be in a var so i don't need to specific every location sparely&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 11:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774938#M717404</guid>
      <dc:creator>fishmanl</dc:creator>
      <dc:date>2021-01-16T11:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loading csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774939#M717405</link>
      <description>&lt;P&gt;For each _folder in 'LM' ,'LN','LT'&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each _csv in filelist ('\\182.19.38.22\Data\BiFiles\$(_folder)\SalesDetail_*.csv')&lt;/P&gt;&lt;P&gt;If filetime('$(_csv)') &amp;gt; dayname(today() - 21) then&lt;/P&gt;&lt;P&gt;Load * from [$(_csv)] (txt);&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;Next _csv&lt;/P&gt;&lt;P&gt;Next _folder&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 11:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774939#M717405</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-01-16T11:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loading csv files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774980#M717406</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 20:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-csv-files-from-multiple-folders/m-p/1774980#M717406</guid>
      <dc:creator>fishmanl</dc:creator>
      <dc:date>2021-01-16T20:09:32Z</dc:date>
    </item>
  </channel>
</rss>

