<?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: Create Fields from File Name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102627#M604223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the left and right function to achieve this.&lt;/P&gt;&lt;P&gt;For Example-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(201801,4) will give you 2018 i.e the Year&lt;/P&gt;&lt;P&gt;Right(201801,2) will give you 01 i.e the Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note- To get filename in the script you can use the FileBaseName() function.&lt;/P&gt;&lt;P&gt;Let me know if it fulfils your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2018 06:38:52 GMT</pubDate>
    <dc:creator>ujjwalraja</dc:creator>
    <dc:date>2018-07-03T06:38:52Z</dc:date>
    <item>
      <title>Create Fields from File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102626#M604222</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 problem to create some fields such as year and month from file name.&lt;/P&gt;&lt;P&gt;I'm using 201801 for the file name, 2018 indicates the year and 01 means the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me how to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;- Kevin -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 06:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102626#M604222</guid>
      <dc:creator>rmdnkevin</dc:creator>
      <dc:date>2018-07-03T06:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Fields from File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102627#M604223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the left and right function to achieve this.&lt;/P&gt;&lt;P&gt;For Example-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(201801,4) will give you 2018 i.e the Year&lt;/P&gt;&lt;P&gt;Right(201801,2) will give you 01 i.e the Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note- To get filename in the script you can use the FileBaseName() function.&lt;/P&gt;&lt;P&gt;Let me know if it fulfils your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 06:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102627#M604223</guid>
      <dc:creator>ujjwalraja</dc:creator>
      <dc:date>2018-07-03T06:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create Fields from File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102628#M604224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the FileBaseName() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Right(FileBaseName(), 4) as Year&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Left(FileBaseName(),2) as Month&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;From&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;xslx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 06:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102628#M604224</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2018-07-03T06:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Fields from File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102629#M604225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the answer&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 07:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Fields-from-File-Name/m-p/102629#M604225</guid>
      <dc:creator>rmdnkevin</dc:creator>
      <dc:date>2018-07-03T07:00:28Z</dc:date>
    </item>
  </channel>
</rss>

