<?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: Making dates out of text field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74740#M770557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. I was trying to go through the list of commands in the Help option to work out what to use but I got a bit lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2018 08:15:41 GMT</pubDate>
    <dc:creator>melwilson</dc:creator>
    <dc:date>2018-06-11T08:15:41Z</dc:date>
    <item>
      <title>Making dates out of text field</title>
      <link>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74735#M770552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am really new to this. I have a text field (called Period) containing date information. I want to create a Month, Year and a YearMonth field but don't know how to do it. Can anyone help, please ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contents of this Period field looks like 2017-M03, 2017-M04 etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen a function Date# but don't know how to strip out the M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mel&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/Making-dates-out-of-text-field/m-p/74735#M770552</guid>
      <dc:creator>melwilson</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Making dates out of text field</title>
      <link>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74736#M770553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#(PurgeChar(Period, 'M'), 'YYYY-MM'), 'YYYY-MM') as YearMonth&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 15:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74736#M770553</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-08T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Making dates out of text field</title>
      <link>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74737#M770554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(Date#(Replace(Period, 'M', ''), 'YYYY-MM'), 'YYYY-MM') as YearMonth&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 15:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74737#M770554</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-08T15:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Making dates out of text field</title>
      <link>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74738#M770555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the field that Sunny has described how to create you can do other stuff with it in a &lt;A href="https://www.quickintelligence.co.uk/preceding-load-qlikview/"&gt;preceding load&lt;/A&gt;, you can also change the format of it;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(YearMonth) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(YearMonth) as Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(Replace(Period, 'M', ''), 'YYYY-MM'), 'MMM-YY') as YearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you four fields from your original field, as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Period: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2017-M03&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YearMonth: Mar 2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Month: Mar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Year: 2017&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hope that helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 17:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74738#M770555</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2018-06-08T17:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Making dates out of text field</title>
      <link>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74739#M770556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the additional information, Steve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 08:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74739#M770556</guid>
      <dc:creator>melwilson</dc:creator>
      <dc:date>2018-06-11T08:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Making dates out of text field</title>
      <link>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74740#M770557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. I was trying to go through the list of commands in the Help option to work out what to use but I got a bit lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 08:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74740#M770557</guid>
      <dc:creator>melwilson</dc:creator>
      <dc:date>2018-06-11T08:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Making dates out of text field</title>
      <link>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74741#M770558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try Like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *,Month(MonthYear) as Month,Year(MonthYear) as Year;&lt;/P&gt;&lt;P&gt;LOAD *,DATE#(left(Period,4)&amp;amp;'-'&amp;amp;SubField(Period,'-M',2),'YYYY-MM') as MonthYear;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Period&lt;/P&gt;&lt;P&gt;2017-M01&lt;/P&gt;&lt;P&gt;2017-M02&lt;/P&gt;&lt;P&gt;2017-M03&lt;/P&gt;&lt;P&gt;2017-M04&lt;/P&gt;&lt;P&gt;2017-M05&lt;/P&gt;&lt;P&gt;2017-M06&lt;/P&gt;&lt;P&gt;2017-M07&lt;/P&gt;&lt;P&gt;2017-M08&lt;/P&gt;&lt;P&gt;2017-M09&lt;/P&gt;&lt;P&gt;2017-M10&lt;/P&gt;&lt;P&gt;2017-M11&lt;/P&gt;&lt;P&gt;2017-M12];&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204786_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 08:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-dates-out-of-text-field/m-p/74741#M770558</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2018-06-11T08:35:43Z</dc:date>
    </item>
  </channel>
</rss>

