<?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: Scripting Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832832#M658238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you should use different conditions based on filename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 12:36:21 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-05-11T12:36:21Z</dc:date>
    <item>
      <title>Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832824#M658230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of filenames such as YYYY.MM Abc.xls, Xyz MM_YYYY.xlsx and many more.&lt;/P&gt;&lt;P&gt;I want the following things o be separated from the filename:&lt;/P&gt;&lt;P&gt;1. Date Format i.e. YYYY.MM for the first file, MM_YYYY for the second and so on.&lt;/P&gt;&lt;P&gt;2. Filename excluding the date format i.e. Abc for the first file and Xyz for the second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? If yes, then how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 09:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832824#M658230</guid>
      <dc:creator />
      <dc:date>2015-05-11T09:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832825#M658231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *,KeepChar(FileBaseName(),'0123456789._') As Date,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;PurgeChar(FileBaseName(),'0123456789._') As FileNm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;From Excel.xlsx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 09:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832825#M658231</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-11T09:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832826#M658232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use string-functions like left/mid/right to extract date-informations from filebasename() and/or removed all unwanted chars with keepchar, see here various possibilities:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(filebasename(), 7) as [YYYY.MM],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; makedate(left(filebasename(), 4), mid(filebasename(6, 2), 1) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keepchar(filebasename(), '0123456789_') as [MM_YYYY]&lt;/P&gt;&lt;P&gt;From x;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 09:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832826#M658232</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-11T09:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832827#M658233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;File names are getting separated properly.&lt;/P&gt;&lt;P&gt;Bu the files with filenames as MM.YYYY YTD_ABC Test_XY.xls, is storing MM.YYYY_ in Date Format and YTDABC TestXY in filename.&lt;/P&gt;&lt;P&gt;Also, some files are in the format ABC December 2014.xls. So in this case, the file name should be just ABC and File Date Format should be December 2014. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 09:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832827#M658233</guid>
      <dc:creator />
      <dc:date>2015-05-11T09:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832828#M658234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Do you have list of formats in which you will get filenames?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 10:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832828#M658234</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-11T10:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832829#M658235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. The list is maintained in a separate column in the excel. The column has values as ABC MMMM YYYY.xls for a file and the corresponding filename is ABC December 2014.&lt;/P&gt;&lt;P&gt;Every month just the month name section of the filename would change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 10:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832829#M658235</guid>
      <dc:creator />
      <dc:date>2015-05-11T10:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832830#M658236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the files in for&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;mat "&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ABC MMMM YYYY.xls", you can use this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;SubField(FileBaseName(),' ',1) As FileNm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;TextBetween(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;FileBaseName() &amp;amp; '$$',' ', '$$') As Date&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 10:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832830#M658236</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-11T10:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832831#M658237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this mean that I have to apply different conditions based on the filename?&lt;/P&gt;&lt;P&gt;Can't we just write a single expression which takes care of separating the file name and date format part irrespective of the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 11:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832831#M658237</guid>
      <dc:creator />
      <dc:date>2015-05-11T11:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832832#M658238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you should use different conditions based on filename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 12:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/832832#M658238</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-11T12:36:21Z</dc:date>
    </item>
  </channel>
</rss>

