<?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 Get all possible parent folders for a given folder location in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-all-possible-parent-folders-for-a-given-folder-location/m-p/1001577#M959977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather large table (5m+ rows)&amp;nbsp; with unique folder locations e.g. C:\Windows\Tmp\30102014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create another table with a row for every possible parent folder. So for the example above I would have 3 entries&lt;/P&gt;&lt;P&gt;Child, Parent&lt;/P&gt;&lt;P&gt;C:\Windows\Tmp\30102014, C:&lt;/P&gt;&lt;P&gt;C:\Windows\Tmp\30102014, C:\Windows&lt;/P&gt;&lt;P&gt;C:\Windows\Tmp\30102014, C:\Windows\Tmp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried looping through the tables, but it takes far too long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would there be a QlikView function for this which I am not thinking of?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-20T18:02:30Z</dc:date>
    <item>
      <title>Get all possible parent folders for a given folder location</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-possible-parent-folders-for-a-given-folder-location/m-p/1001577#M959977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather large table (5m+ rows)&amp;nbsp; with unique folder locations e.g. C:\Windows\Tmp\30102014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create another table with a row for every possible parent folder. So for the example above I would have 3 entries&lt;/P&gt;&lt;P&gt;Child, Parent&lt;/P&gt;&lt;P&gt;C:\Windows\Tmp\30102014, C:&lt;/P&gt;&lt;P&gt;C:\Windows\Tmp\30102014, C:\Windows&lt;/P&gt;&lt;P&gt;C:\Windows\Tmp\30102014, C:\Windows\Tmp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried looping through the tables, but it takes far too long. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would there be a QlikView function for this which I am not thinking of?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-possible-parent-folders-for-a-given-folder-location/m-p/1001577#M959977</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get all possible parent folders for a given folder location</title>
      <link>https://community.qlik.com/t5/QlikView/Get-all-possible-parent-folders-for-a-given-folder-location/m-p/1001578#M959978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a LOAD with a WHILE clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(Folder,index(Folder,'\',iterno())-1) as Parent&lt;/P&gt;&lt;P&gt;WHILE iterno()&amp;lt;=SubstringCount(Folder,'\');&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Folder&lt;/P&gt;&lt;P&gt;C:\Windows\Tmp\30102014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 21:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-all-possible-parent-folders-for-a-given-folder-location/m-p/1001578#M959978</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-30T21:50:01Z</dc:date>
    </item>
  </channel>
</rss>

