<?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: Extracting year and month from date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1640846#M447178</link>
    <description>&lt;P&gt;use this script&lt;/P&gt;&lt;P&gt;aa: load *,&lt;BR /&gt;year(Date_new) as year,&lt;BR /&gt;month(Date_new) as month;&lt;BR /&gt;load *,&lt;BR /&gt;makedate(subfield(Date,'/',-1),subfield(Date,'/',2),subfield(Date,'/',1)) as Date_new;&lt;BR /&gt;load * inline [StoreID,Date,Division,Units,Revenue&lt;BR /&gt;340051,22/08/2006,Eyewear,5,250&lt;BR /&gt;340051,22/08/2006,Jewelry,28,616&lt;BR /&gt;340051,22/08/2006,Luggage,2,350&lt;BR /&gt;340051,22/08/2006,Shoes,2,300&lt;BR /&gt;340052,22/08/2006,Handbags,3,585];&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 13:49:59 GMT</pubDate>
    <dc:creator>florentina_doga</dc:creator>
    <dc:date>2019-10-29T13:49:59Z</dc:date>
    <item>
      <title>Extracting year and month from date field</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1637540#M446926</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;I'm having issues extracting date from date field stored in .txt&lt;/P&gt;&lt;P&gt;Sample data:&amp;nbsp;&lt;/P&gt;&lt;P&gt;StoreID,Date,Division,Units,Revenue&lt;BR /&gt;340051,22/08/2006,Eyewear,5,250&lt;BR /&gt;340051,22/08/2006,Jewelry,28,616&lt;BR /&gt;340051,22/08/2006,Luggage,2,350&lt;BR /&gt;340051,22/08/2006,Shoes,2,300&lt;BR /&gt;340052,22/08/2006,Handbags,3,585&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using SET DateFormat='D.M.YYYY'; as my dateformat.&lt;/P&gt;&lt;P&gt;Been trying to extract it with Month(Date) as Month, and Year(Date) as Year, without them working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I go around to get this to work?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2019 15:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1637540#M446926</guid>
      <dc:creator>Furiku</dc:creator>
      <dc:date>2019-10-20T15:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting year and month from date field</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1637550#M446927</link>
      <description>&lt;P&gt;Hi, the Date#() function is used to set format of the date being read, ie:&lt;/P&gt;&lt;P&gt;LOAD Year(Date#(Date, 'DD/MM/YYYY')) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date#(Date, 'DD/MM/YYYY')) as Month,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2019 17:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1637550#M446927</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-10-20T17:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting year and month from date field</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1640782#M447173</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Joakim, did Ruben's post get things working for you?&amp;nbsp; If so, do not forget to come back and use the Accept as Solution button on his post to give him credit and let others know the suggestion worked.&amp;nbsp; If you are still working upon things, leave an update for us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is a Design Blog link with some further info regarding date functions too:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1640782#M447173</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-29T12:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting year and month from date field</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1640840#M447177</link>
      <description>&lt;P&gt;use makedate in script for data&lt;/P&gt;&lt;P&gt;create a new field like&lt;/P&gt;&lt;P&gt;makedate(subfield(Date,'/',-1),subfield(Date,'/',2),subfield(Date,'/',1)) as Date_new&lt;/P&gt;&lt;P&gt;and in preload&lt;/P&gt;&lt;P&gt;year(Date_new) as year&lt;/P&gt;&lt;P&gt;month(Date_new) as month&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1640840#M447177</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2019-10-29T13:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting year and month from date field</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1640846#M447178</link>
      <description>&lt;P&gt;use this script&lt;/P&gt;&lt;P&gt;aa: load *,&lt;BR /&gt;year(Date_new) as year,&lt;BR /&gt;month(Date_new) as month;&lt;BR /&gt;load *,&lt;BR /&gt;makedate(subfield(Date,'/',-1),subfield(Date,'/',2),subfield(Date,'/',1)) as Date_new;&lt;BR /&gt;load * inline [StoreID,Date,Division,Units,Revenue&lt;BR /&gt;340051,22/08/2006,Eyewear,5,250&lt;BR /&gt;340051,22/08/2006,Jewelry,28,616&lt;BR /&gt;340051,22/08/2006,Luggage,2,350&lt;BR /&gt;340051,22/08/2006,Shoes,2,300&lt;BR /&gt;340052,22/08/2006,Handbags,3,585];&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-year-and-month-from-date-field/m-p/1640846#M447178</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2019-10-29T13:49:59Z</dc:date>
    </item>
  </channel>
</rss>

