<?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 date field using file names in incremental load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437683#M816870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write this way in load script for loading all qvds at once and by using filebasename create the datefield.&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;Date(Date#( SubField( FileBaseName() ,'_',-1),'YYYYMMDD'),'YYYYMMDD') &lt;EM style="font-size: 13.3333px;"&gt;as DateField&lt;/EM&gt;&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;D:\Qcomm\GENERAL_ACCT_MAST_TABLE_&lt;STRONG&gt;*.qvd&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Or&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;Date( SubField( FileBaseName() ,'_',-1),'YYYYMMDD') as DateField&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;D:\Qcomm\GENERAL_ACCT_MAST_TABLE_&lt;STRONG&gt;*.qvd&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2017 11:44:05 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2017-09-05T11:44:05Z</dc:date>
    <item>
      <title>Create date field using file names in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437681#M816868</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;PFA&lt;/P&gt;&lt;P&gt;I&amp;nbsp; would like to concatenete QVD files and create a date field based on the QVD filename ,these files are sitting in one of the folders in my computer. Please below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Test_.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175591_Test_.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437681#M816868</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create date field using file names in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437682#M816869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Right(Subfield(Filename(),'.',-1),10) as Date&lt;/P&gt;&lt;P&gt;From [Folder\GENERAL_ACCT_MAST_TABLE_GH_*.QVD](QVD);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437682#M816869</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2017-09-05T11:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create date field using file names in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437683#M816870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write this way in load script for loading all qvds at once and by using filebasename create the datefield.&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;Date(Date#( SubField( FileBaseName() ,'_',-1),'YYYYMMDD'),'YYYYMMDD') &lt;EM style="font-size: 13.3333px;"&gt;as DateField&lt;/EM&gt;&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;D:\Qcomm\GENERAL_ACCT_MAST_TABLE_&lt;STRONG&gt;*.qvd&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Or&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;Date( SubField( FileBaseName() ,'_',-1),'YYYYMMDD') as DateField&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;D:\Qcomm\GENERAL_ACCT_MAST_TABLE_&lt;STRONG&gt;*.qvd&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437683#M816870</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-05T11:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create date field using file names in incremental load</title>
      <link>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437684#M816871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also try this you have to write this for identifying file name as well&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;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SubField( FileBaseName() ,'_',-1) as DateField,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FileBaseName() as FileName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;GENERAL_ACCT_MAST_TABLE_GH_*.qvd &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;(qvd);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;&lt;IMG alt="FileName.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175594_FileName.PNG" style="height: auto;" /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-date-field-using-file-names-in-incremental-load/m-p/1437684#M816871</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-05T11:58:27Z</dc:date>
    </item>
  </channel>
</rss>

