<?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: Extract filename from a location string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452385#M168878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried pasting your example, is it missing a closing bracket?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gwassernaar, I will test it and let you know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2012 12:12:57 GMT</pubDate>
    <dc:creator>Dayna</dc:creator>
    <dc:date>2012-09-28T12:12:57Z</dc:date>
    <item>
      <title>Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452380#M168873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advise on the best method to extract information from a string? I'm looking to get the information of the filename, but the string comes through with the folder location aswell as the filename (and filetype). Ideally, the only piece of information I want is the filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below shows some example data, as you can see the number of folders may change as does the length of the string and the fileattachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Outbound\filename1.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Outbound\filename_test1.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Inbound\filename_test2.txt&lt;/P&gt;&lt;P&gt;C:\Temp\Folder3\Outbound\filename2.xlsx&lt;/P&gt;&lt;P&gt;C:\Temp\Folder1\Outbound_Test1\data1.doc&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Outbound_Test2\filename11.docx&lt;/P&gt;&lt;P&gt;C:\Temp\Folder2\Dev\Outbound\filename12.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder4\Live\Inbound\filename31.xml&lt;/P&gt;&lt;P&gt;C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for "C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml" I would like the result of "filename41".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help you could provide would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 11:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452380#M168873</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2012-09-28T11:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452381#M168874</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;In the LOAD statement use the function FileBaseName(). That will store into a field the value you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 11:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452381#M168874</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-28T11:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452382#M168875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried filebasename(FILESOURCENAME) AS filename - but it comes back as blank. The filename is stored within a field within the table, does this matter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 11:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452382#M168875</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2012-09-28T11:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452383#M168876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dayna, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_134883465536759" jivemacro_uid="_134883465536759"&gt;&lt;P&gt;=SubField(&lt;/P&gt;&lt;P&gt;Mid(&lt;/P&gt;&lt;P&gt;'C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml'&lt;/P&gt;&lt;P&gt;, Index('C:\Temp\Folder4\Dev\2601\Outbound\Customer1\filename41.xml', '\', -1) +1)&lt;/P&gt;&lt;P&gt;, '.', 1)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 11:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452383#M168876</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-28T11:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452384#M168877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe like this: subfield(strFullPath,'\',-1) as filename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 11:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452384#M168877</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-09-28T11:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452385#M168878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried pasting your example, is it missing a closing bracket?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gwassernaar, I will test it and let you know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Dayna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 12:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452385#M168878</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2012-09-28T12:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452386#M168879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dayna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it was wrong. I have checked it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 12:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452386#M168879</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-09-28T12:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452387#M168880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thank you both!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 12:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/452387#M168880</guid>
      <dc:creator>Dayna</dc:creator>
      <dc:date>2012-09-28T12:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract filename from a location string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/2419115#M1225306</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use Filename() function&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create the columns subfield(Filename(),'.',1) as File_name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 08:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-filename-from-a-location-string/m-p/2419115#M1225306</guid>
      <dc:creator>Crimson_BI</dc:creator>
      <dc:date>2024-02-15T08:09:26Z</dc:date>
    </item>
  </channel>
</rss>

