<?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 How to search for a folder Name with a pattern in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-search-for-a-folder-Name-with-a-pattern/m-p/629473#M1091912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;I have a folder that have many sub-folders with this names Month_Year , example : Mai_2014&lt;/P&gt;&lt;P&gt;I want to search through that folder and find the latest month/year available.&lt;/P&gt;&lt;P&gt;So the question is : How can i store this information (Mai 2014 for example) in a variable in the loading script.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;Example : &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Folder&lt;/P&gt;&lt;P&gt; ---- January_2014&lt;/P&gt;&lt;P&gt; ---- February_2014&lt;/P&gt;&lt;P&gt; ---- March_2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the result will put &lt;SPAN style="color: #ff0000;"&gt;March_2014&lt;/SPAN&gt; in a variable.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 10:58:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-12T10:58:13Z</dc:date>
    <item>
      <title>How to search for a folder Name with a pattern</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-search-for-a-folder-Name-with-a-pattern/m-p/629473#M1091912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;I have a folder that have many sub-folders with this names Month_Year , example : Mai_2014&lt;/P&gt;&lt;P&gt;I want to search through that folder and find the latest month/year available.&lt;/P&gt;&lt;P&gt;So the question is : How can i store this information (Mai 2014 for example) in a variable in the loading script.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;Example : &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Folder&lt;/P&gt;&lt;P&gt; ---- January_2014&lt;/P&gt;&lt;P&gt; ---- February_2014&lt;/P&gt;&lt;P&gt; ---- March_2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the result will put &lt;SPAN style="color: #ff0000;"&gt;March_2014&lt;/SPAN&gt; in a variable.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 10:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-search-for-a-folder-Name-with-a-pattern/m-p/629473#M1091912</guid>
      <dc:creator />
      <dc:date>2014-05-12T10:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a folder Name with a pattern</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-search-for-a-folder-Name-with-a-pattern/m-p/629474#M1091913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a directory load to get the file names as a field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would look something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR each Dir in dirlist ('Put the full file path for the folder containing the files you need loaded here')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;FileName() as FileName&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(Dir)\*&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then just split out the year and month and find the max value to set as a variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 12:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-search-for-a-folder-Name-with-a-pattern/m-p/629474#M1091913</guid>
      <dc:creator />
      <dc:date>2014-05-12T12:00:35Z</dc:date>
    </item>
  </channel>
</rss>

