<?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 Decoding a Directory structure in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Decoding-a-Directory-structure/m-p/1777823#M590975</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a real brain teaser&lt;/P&gt;&lt;P&gt;I have table that lists the directory structure in a real bad way and would like some assistance in simplifying&amp;nbsp; the creation of a table show the folder structure in a tabular way ie; left to right on a single line.&lt;/P&gt;&lt;P&gt;root/&lt;BR /&gt;Root/Folder1&lt;BR /&gt;Root/Folder1/Folder1&lt;BR /&gt;Root/Folder1/Folder2&lt;BR /&gt;Root/Folder1/Folder2/Folder1&lt;BR /&gt;&lt;BR /&gt;FolderID FolderName&lt;BR /&gt;|-1&lt;BR /&gt;|-1-|1 Folder1&lt;BR /&gt;|-1/1-|1 Folder1&lt;BR /&gt;|-1/1-|2 Folder2&lt;BR /&gt;|-1/1/2-|1 Folder1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The start and end are denoted by "|- and -|" a new folder is given a number after the "-|"&lt;/P&gt;&lt;P&gt;any guidance is appreciated&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:33:55 GMT</pubDate>
    <dc:creator>thepope</dc:creator>
    <dc:date>2024-11-16T17:33:55Z</dc:date>
    <item>
      <title>Decoding a Directory structure</title>
      <link>https://community.qlik.com/t5/QlikView/Decoding-a-Directory-structure/m-p/1777823#M590975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a real brain teaser&lt;/P&gt;&lt;P&gt;I have table that lists the directory structure in a real bad way and would like some assistance in simplifying&amp;nbsp; the creation of a table show the folder structure in a tabular way ie; left to right on a single line.&lt;/P&gt;&lt;P&gt;root/&lt;BR /&gt;Root/Folder1&lt;BR /&gt;Root/Folder1/Folder1&lt;BR /&gt;Root/Folder1/Folder2&lt;BR /&gt;Root/Folder1/Folder2/Folder1&lt;BR /&gt;&lt;BR /&gt;FolderID FolderName&lt;BR /&gt;|-1&lt;BR /&gt;|-1-|1 Folder1&lt;BR /&gt;|-1/1-|1 Folder1&lt;BR /&gt;|-1/1-|2 Folder2&lt;BR /&gt;|-1/1/2-|1 Folder1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The start and end are denoted by "|- and -|" a new folder is given a number after the "-|"&lt;/P&gt;&lt;P&gt;any guidance is appreciated&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decoding-a-Directory-structure/m-p/1777823#M590975</guid>
      <dc:creator>thepope</dc:creator>
      <dc:date>2024-11-16T17:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Decoding a Directory structure</title>
      <link>https://community.qlik.com/t5/QlikView/Decoding-a-Directory-structure/m-p/1778415#M590976</link>
      <description>&lt;P&gt;I'm not sure that I really understand what do you you want to do but I think I would try it with something like this:&lt;/P&gt;&lt;P&gt;load *, rowno() as RowNo;&lt;BR /&gt;load recno() as RecNo, iterno() as IterNo, String, subfield(String, Delimiter, iterno()) as SubString&lt;BR /&gt;from Source while substringcount(String, Delimiter) &amp;lt;= iterno();&lt;/P&gt;&lt;P&gt;Subfield() will split your String into multiple records. RecNo and RowNo enable you to track the source- and target-records and IterNo the respective depth of the SubString.&lt;/P&gt;&lt;P&gt;Before and afterwards you will probably need various string-operations with replace(), keepchar() and also left(), right(), mid() and similar functions to prepare the String and to correct the created SubString appropriate.&lt;/P&gt;&lt;P&gt;The next step could be to create a mapping-table of foldernames in regard to the depth of the SubString - maybe just loading the split-results with an appropriate where-clause - and then loading the result-table again and replacing the depth-information with the foldernames.&lt;/P&gt;&lt;P&gt;Afterwards this result could be string-aggregated with concat() to a complete path.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 11:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decoding-a-Directory-structure/m-p/1778415#M590976</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-01-29T11:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Decoding a Directory structure</title>
      <link>https://community.qlik.com/t5/QlikView/Decoding-a-Directory-structure/m-p/1780077#M590977</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm juggling about a dozen things at the moment so thanks for the input, I did a quick run through using the above but had to stop at 500 million lines ( I think I missed something) I will try and look again later this week&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 08:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decoding-a-Directory-structure/m-p/1780077#M590977</guid>
      <dc:creator>thepope</dc:creator>
      <dc:date>2021-02-04T08:52:07Z</dc:date>
    </item>
  </channel>
</rss>

