<?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: How to separate a fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771768#M1020167</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;Month(Date#(Date, 'MM/YYYY')) as Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Year(Date#(Date, 'MM/YYYY')) as Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;MonthName(Date#(Date, 'MM/YYYY')) as MonthYear&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 15:22:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-03-23T15:22:34Z</dc:date>
    <item>
      <title>How to separate a fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771764#M1020163</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;I have some dates coming in in MM/YYYY format and I want to separate those out as Months, and Years.&amp;nbsp; For some reasons I won't get into I cannot use Month(Date) as Month and Year(Date) as Year since the time formats are a little out of whack at the moment.&lt;/P&gt;&lt;P&gt;The other issue I have is that some for instance January is not 01 rather 1 so I cannot use a number to count the separation but would rather use the '/'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I take everything to the left of the / and call it month and everything to the right of the / and call that year?&amp;nbsp; The field is called Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 15:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771764#M1020163</guid>
      <dc:creator />
      <dc:date>2015-03-23T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate a fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771765#M1020164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe your date comes as a STRING, not in proper date_format? In that case, try SUBFIELD - you can use the '/' as separator to split out the parts.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 15:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771765#M1020164</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-23T15:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate a fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771766#M1020165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you try this?&lt;/P&gt;&lt;P&gt;left(' MM/YYYY',index( ' MM/YYYY', '/' )) as MONTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 15:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771766#M1020165</guid>
      <dc:creator />
      <dc:date>2015-03-23T15:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate a fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771767#M1020166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(S, ';' ,2) returns 'cde' if S is 'abc;cde;efg'&lt;/P&gt;&lt;P&gt;subfield(S, ':' ,1) returns NULL if S is an empty string&lt;/P&gt;&lt;P&gt;subfield(S, ':' ,1) returns an empty string if S is ':'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 15:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771767#M1020166</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-03-23T15:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate a fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771768#M1020167</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;Month(Date#(Date, 'MM/YYYY')) as Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Year(Date#(Date, 'MM/YYYY')) as Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;MonthName(Date#(Date, 'MM/YYYY')) as MonthYear&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 15:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771768#M1020167</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-23T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate a fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771769#M1020168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!&amp;nbsp; That is exactly what I was trying to do but I gave up.&amp;nbsp; I wrapped the Date# function too early, I had it before Month and Year which is why it wasn't working before.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 15:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771769#M1020168</guid>
      <dc:creator />
      <dc:date>2015-03-23T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate a fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771770#M1020169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem. I am glad I was able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 15:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-separate-a-fields/m-p/771770#M1020169</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-23T15:29:48Z</dc:date>
    </item>
  </channel>
</rss>

