<?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: Fetching Data from Sub directory in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fetching-Data-from-Sub-directory/m-p/1805095#M1212032</link>
    <description>&lt;P&gt;Thanks for the response&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 17:09:16 GMT</pubDate>
    <dc:creator>saniyask</dc:creator>
    <dc:date>2021-05-04T17:09:16Z</dc:date>
    <item>
      <title>Fetching Data from Sub directory</title>
      <link>https://community.qlik.com/t5/QlikView/Fetching-Data-from-Sub-directory/m-p/1788373#M1210284</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have a requirement where I need to fetch multiple csv's from a path which is eg:- C:Data\Qlik\PlantName\InnerFolder\Week\'.csv'&lt;/P&gt;&lt;P&gt;I need to create a loop which will start from C:Data\Qlik&lt;/P&gt;&lt;P&gt;2. It will open the subfolder&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Once its inside the subfolder it will search for an innerfolder and search for a folder name WEEK and load all the files from that folder.&lt;/P&gt;&lt;P&gt;4. If Week is not present in the innerfolder the loop will search for the file in the next subfolder and so on. (bcz there are multiple Plantname folders in the Main Qlik folder).&lt;/P&gt;&lt;P&gt;I have tried using for each but it doesn't work on three levels, can anyone suggest a solution please.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 15:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetching-Data-from-Sub-directory/m-p/1788373#M1210284</guid>
      <dc:creator>saniyask</dc:creator>
      <dc:date>2021-03-04T15:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Data from Sub directory</title>
      <link>https://community.qlik.com/t5/QlikView/Fetching-Data-from-Sub-directory/m-p/1788522#M1210300</link>
      <description>&lt;P&gt;Hi, it may be something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for each PlantDir in dirlist ('C:\Data\Qlik\*')
  for Each InnerFolder in dirlist (PlantDir)
    for each WeekFolder in dirlist (InnerFolder)
      IF Upper(Subfield('$(WeekFolder)','\',-1))='WEEK' THEN
        LOAD
          *
        From [$(WeekFolder)\*.csv]
          (txt, utf8, embedded labels, delimiter is ',', msq)
        ;
      ENDIF
    next
  next
next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 20:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetching-Data-from-Sub-directory/m-p/1788522#M1210300</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-03-04T20:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching Data from Sub directory</title>
      <link>https://community.qlik.com/t5/QlikView/Fetching-Data-from-Sub-directory/m-p/1805095#M1212032</link>
      <description>&lt;P&gt;Thanks for the response&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 17:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetching-Data-from-Sub-directory/m-p/1805095#M1212032</guid>
      <dc:creator>saniyask</dc:creator>
      <dc:date>2021-05-04T17:09:16Z</dc:date>
    </item>
  </channel>
</rss>

