<?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: Get the text from a wildmatch expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573324#M442328</link>
    <description>&lt;P&gt;Thanks a lot Sunny, this is working as expected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 12:54:54 GMT</pubDate>
    <dc:creator>ckmchinmaya</dc:creator>
    <dc:date>2019-04-25T12:54:54Z</dc:date>
    <item>
      <title>Get the text from a wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573198#M442323</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I have a simple requirement but not able trace the right link for it. So posted here.&lt;/P&gt;&lt;P&gt;I am getting different file names which is having "Year" as part of the file name. I want to have some trend based on the "Quarter" &amp;amp; "Year" for which the file generated. I don't want to assume the "Year" is always in a fixed position especially from the right side.&lt;/P&gt;&lt;P&gt;My filename looks like :&amp;nbsp;DK_&lt;STRONG&gt;Q3&lt;/STRONG&gt;_XYX_DTRR_KL_&lt;STRONG&gt;2018&lt;/STRONG&gt;-09-21_08-48-08.xlsx , to understand if the file name is holding&amp;nbsp; a valid "year" or not i am using the below expression&amp;nbsp;&amp;nbsp;WildMatch(File,'*_20??-*'). At the moment we can assume, the filename always in YYYY format.&lt;/P&gt;&lt;P&gt;I want your suggestion what is the best way to extract the "Year" from the file name considering the dynamics ( specifically by the expression mentioned in the WildMatch function.&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573198#M442323</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-04-25T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get the text from a wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573268#M442325</link>
      <description>&lt;P&gt;May be this to extract year&lt;/P&gt;&lt;PRE&gt;Year(Date#(SubField('DK_Q3_XYX_DTRR_KL_2018-09-21_08-48-08.xlsx', '_', 6), 'YYYY-MM-DD'))&lt;/PRE&gt;&lt;P&gt;or this to get Date&lt;/P&gt;&lt;PRE&gt;Date(Date#(SubField('DK_Q3_XYX_DTRR_KL_2018-09-21_08-48-08.xlsx', '_', 6), 'YYYY-MM-DD'))&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Apr 2019 11:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573268#M442325</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-25T11:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get the text from a wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573286#M442326</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks for your response. The problem here is we can't assume the date position - it will change from file to file.&lt;/P&gt;&lt;P&gt;Some files it may come after 3/4 "_" blocks&lt;/P&gt;&lt;PRE&gt;SubField('DK_Q3_XYX_DTRR_KL_2018-09-21_08-48-08.xlsx', '_', 6)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;We may need to recognize the "Year" i.e. "YYYY" pattern some thing like '*_20??-??-??_*' in some way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573286#M442326</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-04-25T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get the text from a wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573288#M442327</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;PRE&gt;Table:
LOAD File,&lt;BR /&gt;     &lt;FONT color="#FF0000"&gt;Date(Date#(20 &amp;amp; TextBetween('_'&amp;amp; SubField(File, '.', 1) &amp;amp; '_', '_20', '_'), 'YYYY-MM-DD'))&lt;/FONT&gt; as Date;
LOAD * INLINE [
    File
    DK_Q3_XYX_DTRR_KL_2018-09-21_08-48-08.xlsx
    DK_Q3_2018-09-21_XYX_DTRR_KL_08-48-08.xlsx
    DK_Q3_XYX_DTRR_KL_08-48-08_2018-09-21.xlsx
    2018-09-21_DK_Q3_XYX_DTRR_KL_08-48-08.xlsx
];&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573288#M442327</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-25T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get the text from a wildmatch expression</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573324#M442328</link>
      <description>&lt;P&gt;Thanks a lot Sunny, this is working as expected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 12:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-text-from-a-wildmatch-expression/m-p/1573324#M442328</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-04-25T12:54:54Z</dc:date>
    </item>
  </channel>
</rss>

