<?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: Error creating day number of year using DayNumberOfYear function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620025#M1107077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/82367"&gt;Alessandro Saccone&lt;/A&gt;: Thank you for that. So i guess the problem really is how do I get the DayNumberOfYear when I only have 364 days in a year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I have a dataset where the date for an entry is YYYDDD and the largest DDD number is 364.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 13:16:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-25T13:16:26Z</dc:date>
    <item>
      <title>Error creating day number of year using DayNumberOfYear function</title>
      <link>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620023#M1107075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im trying to create the day number of year using &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;DayNumberOfYear&lt;/SPAN&gt; function. However, all my dates before year 2000 starts from 2nd of january, and the 1stof january gets the number 366. All days after and including year 2000 gets the right numbers. Is this an error, or am I not using the &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;DayNumberOfYear&lt;/SPAN&gt; function correctly. &lt;/P&gt;&lt;P&gt;The issue arised when was creating a master calendar from start date 1950.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;DayNumberOfYear&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01-01-1998&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;366&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01-01-1999&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;366&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01-01-2000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01-01-2001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have noticed that 01-01-2000 also have DayNumerOfYear = 366&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on this?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Philip &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620023#M1107075</guid>
      <dc:creator />
      <dc:date>2014-03-25T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating day number of year using DayNumberOfYear function</title>
      <link>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620024#M1107076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That function works with year based on 366 days (look at help)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 12:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620024#M1107076</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-25T12:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating day number of year using DayNumberOfYear function</title>
      <link>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620025#M1107077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/82367"&gt;Alessandro Saccone&lt;/A&gt;: Thank you for that. So i guess the problem really is how do I get the DayNumberOfYear when I only have 364 days in a year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I have a dataset where the date for an entry is YYYDDD and the largest DDD number is 364.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620025#M1107077</guid>
      <dc:creator />
      <dc:date>2014-03-25T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Error creating day number of year using DayNumberOfYear function</title>
      <link>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620026#M1107078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign the day numbers in the script.&amp;nbsp; Something like this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;let MinDate = num(makedate(1998,1,1));&lt;/P&gt;
&lt;P&gt;let MaxDate = num(makedate(2003,1,1));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load Date, if(Month(Date)=1 and Day(Date)=1, 1, PEEK('DayNumberOfYear')+1) as DayNumberOfYear;&lt;/P&gt;
&lt;P&gt;Load Date($(MinDate)-1+iterno()) as Date autogenerate 1 While iterno() &amp;lt;= $(MaxDate)+1 - $(MinDate);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;let MinDate = null();&lt;/P&gt;
&lt;P&gt;let MaxDate = null();&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example file is also attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620026#M1107078</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-25T13:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating day number of year using DayNumberOfYear function</title>
      <link>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620027#M1107079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Nicole Smith: Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 13:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620027#M1107079</guid>
      <dc:creator />
      <dc:date>2014-03-25T13:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating day number of year using DayNumberOfYear function</title>
      <link>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620028#M1107080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NOTE: The date format YYYYDDD comes from IBM DB2 databases, in case anyone need it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 06:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-creating-day-number-of-year-using-DayNumberOfYear-function/m-p/620028#M1107080</guid>
      <dc:creator />
      <dc:date>2014-03-28T06:23:37Z</dc:date>
    </item>
  </channel>
</rss>

