<?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 How to extract Month,Year,YearMonth fields from Excel file name? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419197#M801467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two .xlsx files named&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global IT Assesment - vilot Apps 20171029 V1 -Oct Metrics&lt;/P&gt;&lt;P&gt;Global IT Assesment - vilot Apps 20171118 V1 -Nov Metrics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From these excel file names need to extract the Date,Month,Year and YearMonth fields in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me how to extract the above date fields from the file name.&lt;/P&gt;&lt;P&gt;Please find the excel source files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>bhavvibudagam</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to extract Month,Year,YearMonth fields from Excel file name?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419197#M801467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two .xlsx files named&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global IT Assesment - vilot Apps 20171029 V1 -Oct Metrics&lt;/P&gt;&lt;P&gt;Global IT Assesment - vilot Apps 20171118 V1 -Nov Metrics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From these excel file names need to extract the Date,Month,Year and YearMonth fields in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me how to extract the above date fields from the file name.&lt;/P&gt;&lt;P&gt;Please find the excel source files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419197#M801467</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract Month,Year,YearMonth fields from Excel file name?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419198#M801468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can try like this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/88863"&gt;Making Month/Year Date From Source File Name&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 11:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419198#M801468</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-04T11:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract Month,Year,YearMonth fields from Excel file name?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419199#M801469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you need to load all data to make good data model. That model may from fact table. From fact table, You can extract and develop only one date field after you can use Month(), Year() .... for DateField..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 11:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419199#M801469</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-04T11:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract Month,Year,YearMonth fields from Excel file name?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419200#M801470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/FileFunctions/FileName.htm"&gt;FileName() Funcion&lt;/A&gt; to get the xlsx name and then use string and date functions to get the value you want.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="185573" alt="2017-12-04 12_10_28-QlikView x64 Personal Edition - [C__Users_Michele.Denardi_Desktop_Test.qvw_].png" class="jive-image image-1" src="/legacyfs/online/185573_2017-12-04 12_10_28-QlikView x64 Personal Edition - [C__Users_Michele.Denardi_Desktop_Test.qvw_].png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15123859522802080" jivemacro_uid="_15123859522802080"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Global IT Assesment:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; G,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; makedate(mid(FileName(),34,4),mid(FileName(),38,2),mid(FileName(),40,2)) as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; monthname(makedate(mid(FileName(),34,4),mid(FileName(),38,2),mid(FileName(),40,2))) as MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(FileName(),38,2)&amp;amp;'/'&amp;amp;mid(FileName(),34,4) as Year_Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(FileName(),34,4) as Year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(FileName(),38,2) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(FileName(),40,2) as Day&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apply the same logic for the second xlsx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 11:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419200#M801470</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2017-12-04T11:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract Month,Year,YearMonth fields from Excel file name?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419201#M801471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;='YYYYMMDD';&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *,&lt;SPAN style="color: #0000ff;"&gt;Month&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;Year&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;MonthName&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MonthName&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Where&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;IsNull&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;);&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *,&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Alt&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;SubField&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;FileName&lt;/SPAN&gt;(),' ')))) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; [Global IT Assesment - vilot Apps 20171029 V1 -Oct Metrics.xlsx]&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Sheet1); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185574_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 11:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-extract-Month-Year-YearMonth-fields-from-Excel-file-name/m-p/1419201#M801471</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-12-04T11:25:42Z</dc:date>
    </item>
  </channel>
</rss>

