<?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 Convert various string dates to a Year and Month column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-various-string-dates-to-a-Year-and-Month-column/m-p/1558271#M599096</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've got a table in which there is a column known as Period. It describes the year and month as, for example, 1998MM02. In addition, it also has the row 1998JJ00, which in this case is the overall year accumulation. A brief example below:&lt;/P&gt;&lt;PRE&gt;Period
1998MM01
1998MM02
1998MM03
1998MM04
1998MM05
1998MM06
1998MM07
1998MM08
1998MM09
1998MM10
1998MM11
1998MM12
1998JJ00&lt;/PRE&gt;&lt;P&gt;What I want is two separate columns, one that contains the Year and another containing the Month.&amp;nbsp; So far, I managed to remove the characters from the Period column, and managed to separate it into two additional columns Year and Month. However, the year accumulation (i.e. 1998JJ00) is in both columns NaN ( - ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is a simple solution to get the output given below ?&lt;/P&gt;&lt;PRE&gt;Period              Year            Month
1998MM01            1998            01
1998MM02            1998            02
1998MM03            1998            03
1998MM04            1998            04
1998MM05            .....           ...
1998MM06
1998MM07
1998MM08
1998MM09
1998MM10
1998MM11
1998MM12            1998          12
1998JJ00            1998          00&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:07:21 GMT</pubDate>
    <dc:creator>klikgevoel</dc:creator>
    <dc:date>2024-11-16T04:07:21Z</dc:date>
    <item>
      <title>Convert various string dates to a Year and Month column</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-various-string-dates-to-a-Year-and-Month-column/m-p/1558271#M599096</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've got a table in which there is a column known as Period. It describes the year and month as, for example, 1998MM02. In addition, it also has the row 1998JJ00, which in this case is the overall year accumulation. A brief example below:&lt;/P&gt;&lt;PRE&gt;Period
1998MM01
1998MM02
1998MM03
1998MM04
1998MM05
1998MM06
1998MM07
1998MM08
1998MM09
1998MM10
1998MM11
1998MM12
1998JJ00&lt;/PRE&gt;&lt;P&gt;What I want is two separate columns, one that contains the Year and another containing the Month.&amp;nbsp; So far, I managed to remove the characters from the Period column, and managed to separate it into two additional columns Year and Month. However, the year accumulation (i.e. 1998JJ00) is in both columns NaN ( - ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is a simple solution to get the output given below ?&lt;/P&gt;&lt;PRE&gt;Period              Year            Month
1998MM01            1998            01
1998MM02            1998            02
1998MM03            1998            03
1998MM04            1998            04
1998MM05            .....           ...
1998MM06
1998MM07
1998MM08
1998MM09
1998MM10
1998MM11
1998MM12            1998          12
1998JJ00            1998          00&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-various-string-dates-to-a-Year-and-Month-column/m-p/1558271#M599096</guid>
      <dc:creator>klikgevoel</dc:creator>
      <dc:date>2024-11-16T04:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert various string dates to a Year and Month column</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-various-string-dates-to-a-Year-and-Month-column/m-p/1558275#M599099</link>
      <description>&lt;P&gt;For Month : =Right(Period,'2')&lt;BR /&gt;For Year : =left(Period,4) OR subField(Period,'MM')&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 08:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-various-string-dates-to-a-Year-and-Month-column/m-p/1558275#M599099</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-19T08:44:46Z</dc:date>
    </item>
  </channel>
</rss>

