<?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: Derive the Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841316#M295656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the period is a string you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(subfield(Period, '-', 2)) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the period was loaded as a Date, you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(Period) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 23:58:36 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-04-01T23:58:36Z</dc:date>
    <item>
      <title>Derive the Year</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841314#M295654</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 have a period Name field that has values as Mar-14 where 14 stands for the the year.&lt;/P&gt;&lt;P&gt;If I want to derive the year from this field using the year function something like YearName([Period Name]=2014&lt;/P&gt;&lt;P&gt;What is the best way to achieve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841314#M295654</guid>
      <dc:creator />
      <dc:date>2015-04-01T23:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Derive the Year</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841315#M295655</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;=YEAR(Date#('Mar-14 ','MMM-YY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in script&lt;/P&gt;&lt;P&gt;=YEAR(Date#(Name,'MMM-YY')) as Year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841315#M295655</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-04-01T23:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Derive the Year</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841316#M295656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the period is a string you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(subfield(Period, '-', 2)) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the period was loaded as a Date, you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(Period) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841316#M295656</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-04-01T23:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Derive the Year</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841317#M295657</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;You can try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(Date#(Year_Field_Name,'MMM-YY'),'YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp; Extract_Year,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 09:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-the-Year/m-p/841317#M295657</guid>
      <dc:creator />
      <dc:date>2015-04-02T09:18:09Z</dc:date>
    </item>
  </channel>
</rss>

