<?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: Re: Oldest Excel file LOADING in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821038#M667535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the loop ends $(file) will point to the last (newest) file. So a simple solution would be to let a do-nothing loop run and LOAD $(file) after the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;FOR Each file in FileList('*_data.txt')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;NEXT file&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;LOAD...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;FROM&amp;nbsp; [$(file)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;(biff,.....);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 22:07:51 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-11-13T22:07:51Z</dc:date>
    <item>
      <title>Oldest Excel file LOADING</title>
      <link>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821033#M667530</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;I have a folder where I keep a bunch of snapshot data in excel files. The way I name the files is : YYYYMMDD_Data.xlsx&lt;/P&gt;&lt;P&gt;How could I tell Qlikview to load only the oldest file from that folder in my script ? ( by oldest I mean just looking at the string YYYYMMDD )&lt;/P&gt;&lt;P&gt;Thanks for any trick to do this&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821033#M667530</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-11-12T17:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Oldest Excel file LOADING</title>
      <link>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821034#M667531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SalesFolder:&amp;nbsp;&amp;nbsp; //Here Your getting all the file names that are present in the source folder//&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // RecNo() AS Records,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILENAME() AS KEY&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[..\DATA\SALESREPORT *]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sales);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MAX_FILE:&amp;nbsp; // Using resident your loading only the file that has minimum Timestamp//&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Minstring(KEY)&amp;nbsp; AS MAX_FILE&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT SalesFolder;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vMaxFile=peek('MAX_FILE','-1','MAX_FILE');&amp;nbsp; // Storing that (maxfile/min File) in a variable//&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP TABLE SalesFolder;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SalesFolderWithMaxDate: // loading only the file that has max timestamp from the source folder//&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;lOAD *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[..\DATA\$(vMaxFile)]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sales);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/*&amp;nbsp; U can Create a task by daily or hourly ( On qlikview Server) how your files are updated on the source folder */&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or go through this link :&amp;nbsp; &lt;A href="https://community.qlik.com/thread/141578"&gt;QlikView should pull automatically from "New Updated Excel Sheet" by latest date.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let me know if this works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821034#M667531</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2014-11-12T17:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Oldest Excel file LOADING</title>
      <link>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821035#M667532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TempTab:&lt;/P&gt;&lt;P&gt;Load Left(FileBaseName() ,8) as myFile from 'C:\.....\......\*.*';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinVal:&lt;/P&gt;&lt;P&gt;Load min(myFile) as minimum From TempTab group by myFile;&lt;/P&gt;&lt;P&gt;Let mini = peek('minimum',0,'MinVal');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load now from your file xlsx as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * From .... $(mini)_data.xlsx .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821035#M667532</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-11-12T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oldest Excel file LOADING</title>
      <link>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821036#M667533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like&amp;nbsp; your file naming convention of YYYYMMDD will make the oldest file be first in sort order, so I think the simplest may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR Each file in FileList('*_data.txt')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LOAD...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; FROM&amp;nbsp; [$(file)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; (biff,.....);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Exit For&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Exit the loop after loading first file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821036#M667533</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-11-12T17:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Oldest Excel file LOADING</title>
      <link>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821037#M667534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Rob, my mistake, where I said oldest file I should have said newest file. I am interested in loading only the newest file in the folder. By the way on your proposed script, last line where you add EXIT FOR ...would I need to add "1" at the end ? ( so the loop stops after the first file has been loaded )...or it is just enough to leave it like that ( EXIT FOR ).&lt;/P&gt;&lt;P&gt;Thanks a lot for your time and help&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 21:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821037#M667534</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-11-13T21:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Oldest Excel file LOADING</title>
      <link>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821038#M667535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the loop ends $(file) will point to the last (newest) file. So a simple solution would be to let a do-nothing loop run and LOAD $(file) after the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;FOR Each file in FileList('*_data.txt')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;NEXT file&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;LOAD...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;FROM&amp;nbsp; [$(file)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;(biff,.....);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.7272720336914px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.7272720336914px; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 22:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821038#M667535</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-11-13T22:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oldest Excel file LOADING</title>
      <link>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821039#M667536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much guys for your help. I managed to follow your suggestions ( and the quickest way provided by Rob ). I added some calculated fields , derived from the file name to have my datestamp in the resulting table as well :&lt;/P&gt;&lt;P&gt;Script :&lt;/P&gt;&lt;P&gt;FOR Each file in FileList( '*_Activ_EU.xlsx' )&lt;/P&gt;&lt;P&gt;NEXT file&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;left(Filename(),8)&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as DateStamp_string,&lt;/P&gt;&lt;P&gt;Date(date#(left(Filename(),8),'YYYYMMDD'), 'DD-MMM-YY')&amp;nbsp;&amp;nbsp;&amp;nbsp; as DS_Date, &lt;/P&gt;&lt;P&gt;Year(date#(left(Filename(),8),'YYYYMMDD'))&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; as DS_Year,&lt;/P&gt;&lt;P&gt;Month(date#(left(Filename(),8),'YYYYMMDD'))&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; as DS_Month,&lt;/P&gt;&lt;P&gt;dual('Q0'&amp;amp;ceil(month(date#(left(Filename(),8),'YYYYMMDD'))/3),ceil(month(date#(left(Filename(),8),'YYYYMMDD'))/3))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as DS_QTR&lt;/P&gt;&lt;P&gt;FROM [$(file)]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know any shortcut for above scenario where you need to add several calculated fields basically using the same original field, in this case being&amp;nbsp; left(Filename(),8) ? I thought of maybe just loading this calculated field first ( alone ) ...then build the other fields from this one ( already aliased as DateStamp_string ) using a resident load ? Any other ( better, faster ) ideas ?&lt;/P&gt;&lt;P&gt;Thanks again for your time and help&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 17:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oldest-Excel-file-LOADING/m-p/821039#M667536</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2014-11-17T17:37:51Z</dc:date>
    </item>
  </channel>
</rss>

