Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

DayNumberOfYear Function...

Dear QV Experts,

DayNumberOfYear Function returns 366 days though my year is 2015.
Can you please suggest to return as 365 days. Because it impacts the Annualized calculation if not leap year.

Appreciate your prompt response.

Thanks,
Sasi

5 Replies
Chanty4u
MVP
MVP

hi,

Convert Day Number of year to date

abve link helps u what u want exact..

thanks 'S

Suresh

jonathandienst
Partner - Champion III
Partner - Champion III

To quote swuehl's respsonse in the above thread:

>>The QV function daynumberofyear() always uses years based on 366 days (leap years).

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
HirisH_V7
Master
Master

Hi Sasi ,

In Back End :


DayNumberOfYear(Date) as DayNumber,

http://www.qlikviewaddict.com/2013/03/dates-in-qlikview-part-3.html

HTH,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
rubenmarin

Hi Sasi, as said above DayNumberOfYear() always returns 366 days. To calculate real days you can use:

=Date(CYEndDate)-YearStart(Date(CYEndDate))+1

Not applicable
Author

Thanks a lot Ruben & All.