<?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: String manipulation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737663#M263786</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;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(Left(FileBaseName(), 8), 'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;2a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Name, '.', -1) As Extension&lt;/P&gt;&lt;P&gt;2b.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(Name, Len(Name) - Len(SubField(Name, '.', -1)) -1) As FileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 08:43:47 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-10-16T08:43:47Z</dc:date>
    <item>
      <title>String manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737660#M263783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two string manipulation questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;at the moment my .csv files have the following format: 20141016#name.csv. &lt;BR /&gt;Using the &lt;STRONG&gt;filename&lt;/STRONG&gt; function how can I turn "&lt;EM&gt;20141016&lt;/EM&gt;" into an actual date (feel free to recommend a better formatting of the date) and also get the name value (without the ".csv") to load both into separate columns?&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;how do I split a filename (in this case it has nothing to do with the filename function) into name and extension when the filename contains more than one "&lt;STRONG&gt;.&lt;/STRONG&gt;"&lt;OL&gt;&lt;OL&gt;&lt;LI&gt;Example:&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Lower(Right(Name, Len(Name)-Index(Name, '.', 1))) AS Extension&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;This works with a "normal" file name but what about:&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;STRONG&gt;filename 1. of 2.txt&lt;/STRONG&gt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So basically how do I go from the right to get the first "&lt;STRONG&gt;.&lt;/STRONG&gt;"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737660#M263783</guid>
      <dc:creator />
      <dc:date>2014-10-16T08:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737661#M263784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the second question use filename() and fileextension() they shoul have to work ...&lt;/P&gt;&lt;P&gt;for the first question an option (apart date formatting) could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;Makedate(left(filename,4), mid(filename,5,2), mid(filename,7,2))&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;LEt me know&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737661#M263784</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-16T08:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737662#M263785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look at filebasename and fileextension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fileinformation:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(left(filebasename(),6),'DD.MM.YYYY') as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileExtension() as Extension&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;*.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737662#M263785</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2014-10-16T08:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737663#M263786</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;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(Left(FileBaseName(), 8), 'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;2a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Name, '.', -1) As Extension&lt;/P&gt;&lt;P&gt;2b.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(Name, Len(Name) - Len(SubField(Name, '.', -1)) -1) As FileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 08:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737663#M263786</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-16T08:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737664#M263787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for showing different ways. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 11:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-manipulation/m-p/737664#M263787</guid>
      <dc:creator />
      <dc:date>2014-10-16T11:57:51Z</dc:date>
    </item>
  </channel>
</rss>

