<?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: Splitting the field !! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477435#M483164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#([Year Month],'YYYYMM'),'MMM-YY') as [Month Year]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates in that [Month Year] field will have a numeric value that's the first day of the month and a text value for display in the MMM-YY format. Because of the numeric value it can easily be used for calculations, for examply using the addmonths or addyears functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to split the field in a month and a year field try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(date#([Year Month],'YYYYMM')) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date#([Year Month],'YYYYMM')) as Month&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jul 2013 13:12:40 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-07-13T13:12:40Z</dc:date>
    <item>
      <title>Splitting the field !!</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477432#M483161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Hello Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; I have a field called Year month&amp;nbsp; - this is in the format 201301 – which is nothing but the year and month . this needs to be changed to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;(Month Jan // Year 2013 as two separate). It should get display as Jan-13.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;How can we do this !!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;I have loaded and done&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year([Year Month]) as Year,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month([Year Month]) as Month &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;But the results comes in some number format. (Ex:204751)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Once it is done i need to combine this with another Date field, may be as a Key but am not sure yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Kindly provide with your answers, your help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Paul&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2013 11:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477432#M483161</guid>
      <dc:creator />
      <dc:date>2013-07-13T11:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the field !!</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477433#M483162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Monthname(Makedate(Left(YearMonth,4),Right(YearMonth,2))) as MonthYear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Date(Date#(YearMonth,'YYYYMM'),'MMM-YY') as MonthYear1 inline [ &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearMonth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201301&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201302&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201303&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2013 12:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477433#M483162</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-07-13T12:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the field !!</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477434#M483163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt; Thanks for the response. I did not understand why Inline should get load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the purpose of this, without inline also it works.&lt;/P&gt;&lt;P&gt;secondly does qlikview understant Left and Right like SQL... I was not knowing these functions are available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2013 12:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477434#M483163</guid>
      <dc:creator />
      <dc:date>2013-07-13T12:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the field !!</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477435#M483164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#([Year Month],'YYYYMM'),'MMM-YY') as [Month Year]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dates in that [Month Year] field will have a numeric value that's the first day of the month and a text value for display in the MMM-YY format. Because of the numeric value it can easily be used for calculations, for examply using the addmonths or addyears functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to split the field in a month and a year field try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(date#([Year Month],'YYYYMM')) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date#([Year Month],'YYYYMM')) as Month&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2013 13:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477435#M483164</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-13T13:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the field !!</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477436#M483165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try using the following in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC:&lt;/P&gt;&lt;P&gt;left([&lt;SPAN style="color: #737373; background-color: #ffffff;"&gt;Year month&lt;/SPAN&gt;], 4) as Year&lt;/P&gt;&lt;P&gt;monthname(right([&lt;SPAN style="color: #737373; background-color: #ffffff;"&gt;Year month&lt;/SPAN&gt;], 2)) as Month&lt;/P&gt;&lt;P&gt;monthname(right([&lt;SPAN style="color: #737373; background-color: #ffffff;"&gt;Year month&lt;/SPAN&gt;], 2)) &amp;amp;' - '&amp;amp; &lt;SPAN style="font-size: 10pt;"&gt;left([&lt;/SPAN&gt;&lt;SPAN style="color: #737373; background-color: #ffffff;"&gt;Year month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;], 4) as Month_of_Year&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2013 13:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477436#M483165</guid>
      <dc:creator />
      <dc:date>2013-07-13T13:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the field !!</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477437#M483166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;you can try using the following in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ABC:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;left([Year month], 4) as Year&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;monthname(right([Year month], 2)) as Month&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;monthname(right([Year month], 2)) &amp;amp;' - '&amp;amp; &lt;SPAN style="font-size: 10pt;"&gt;left([&lt;/SPAN&gt;Year month&lt;SPAN style="font-size: 10pt;"&gt;], 4) as Month_of_Year&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2013 13:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-the-field/m-p/477437#M483166</guid>
      <dc:creator />
      <dc:date>2013-07-13T13:24:14Z</dc:date>
    </item>
  </channel>
</rss>

