<?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: Capturing a date that's embedded in an Excel filename in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767907#M1298489</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;use left(right(Filename(),10),6) as Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 15:12:53 GMT</pubDate>
    <dc:creator>lukaspuschner</dc:creator>
    <dc:date>2014-12-19T15:12:53Z</dc:date>
    <item>
      <title>Capturing a date that's embedded in an Excel filename</title>
      <link>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767905#M1298486</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 am loading a weekly data file into my Qlikview model. The filename finishes with the date of the file. I have a number of measures that need to run off that date. At present I am using an input formula to get the user to manually enter the date each time they reload but I'm wondering if there is a way to extract the date from the filename?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The filename is in the following format - Ireland IHD export -151214.xlsx. I know how to reformat the date into a normal date format but don't know how to capture it from the filename?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your help&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767905#M1298486</guid>
      <dc:creator>nickking</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing a date that's embedded in an Excel filename</title>
      <link>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767906#M1298488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the filename() function in the load statement to retrieve the filename. You can then extract the date from the file name:&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#( textbetween(FileName(),'-','.') ,'DDMMYY') as FileDate &lt;/P&gt;&lt;P&gt;FROM MyExcelFile-151214.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 15:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767906#M1298488</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-19T15:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing a date that's embedded in an Excel filename</title>
      <link>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767907#M1298489</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;use left(right(Filename(),10),6) as Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 15:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767907#M1298489</guid>
      <dc:creator>lukaspuschner</dc:creator>
      <dc:date>2014-12-19T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing a date that's embedded in an Excel filename</title>
      <link>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767908#M1298490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lukas. That worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 10:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Capturing-a-date-that-s-embedded-in-an-Excel-filename/m-p/767908#M1298490</guid>
      <dc:creator>nickking</dc:creator>
      <dc:date>2015-01-05T10:56:16Z</dc:date>
    </item>
  </channel>
</rss>

