<?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: Making Month/Year Date From Source File Name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563008#M555097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a million, that worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appriciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2013 11:26:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-07T11:26:03Z</dc:date>
    <item>
      <title>Making Month/Year Date From Source File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563003#M555092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of source files and they are labeled 01-13_MUV.xlsx. &lt;/P&gt;&lt;P&gt;The 01 is the month and 13 is the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to extract this month year date to create a listbox filter of month year within my app. &lt;/P&gt;&lt;P&gt;I am wondering if this is possible, or will have to just add the month/year column into the actual source file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would greatly appriciate any help I can get on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 10:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563003#M555092</guid>
      <dc:creator />
      <dc:date>2013-08-07T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Making Month/Year Date From Source File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563004#M555093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can loop through the files, assigning the filenames to a variable, which you would then need to use in the load statement and can also strip apart to use for making fields. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Dir = 'C:\ExcelFilesDir';&lt;/P&gt;&lt;P&gt;FOR EACH File IN FileList($(Dir)&amp;amp;'*.xlsx')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SET vExcelFileMonth = Left($(File),2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SET vExcelFileYear = Mid($(File),4,2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TableName:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 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; MakeDate($(vExcelFileYear),$(vExcelFileMonth)) AS ExcelFileDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM [$(File)] (biff, embedded labels, table is [Sheet1$]);&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 11:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563004#M555093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-07T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Making Month/Year Date From Source File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563005#M555094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you loading the tables with a wildcard or are you using a loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd use a loop and create the filename using variables, checking the file exists and loading each one. From there it's pretty straight forward to add the field into the table using the same variables you used to load it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 11:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563005#M555094</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2013-08-07T11:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Making Month/Year Date From Source File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563006#M555095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im loading the files using *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just clicked into the table files and brought in the source file, and the changed the 01-13 to *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it looks like this;&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;[MUV analysis\ *.xlsx] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where when I load one source file at a time it looks like this&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;[MUV analysis\01-13.xlsx].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to somehow extract the 01-13 and make it into a MonthYear field in the app, but im not sure can that be done when im using * to load in all the files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Each source file has the exact same layout and columns so that * can work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 11:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563006#M555095</guid>
      <dc:creator />
      <dc:date>2013-08-07T11:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Making Month/Year Date From Source File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563007#M555096</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;This should do the trick, whether you are loading in a loop or using a wildcard load as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(Left(FileBaseName(), 5), 'MM-YY')) As FileDate,&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; &lt;EM&gt;other fields&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;FROM *_MUV.xlsx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 11:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563007#M555096</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-08-07T11:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Making Month/Year Date From Source File Name</title>
      <link>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563008#M555097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a million, that worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appriciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 11:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-Month-Year-Date-From-Source-File-Name/m-p/563008#M555097</guid>
      <dc:creator />
      <dc:date>2013-08-07T11:26:03Z</dc:date>
    </item>
  </channel>
</rss>

