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

How to get current day number (e.g today is day 291 out of 365 days)

Hello,

I am trying to get the exact day number as of today from day 1 of year 2017.

I used this string for getting the current  day number in current month:

Day(Date(today()))

But string - Year(Date(today())) does not do the trick. Hope someone helps me.

Thanks a lot!

Joy

1 Solution

Accepted Solutions
oknotsen
Master III
Master III

Hi,

I think what you need is this function:

daynumberofyear - script and chart function ‒ Qlik Sense

daynumberofyear ‒ QlikView

Note that you can also remove the date() function from your expression.

May you live in interesting times!

View solution in original post

5 Replies
oknotsen
Master III
Master III

Hi,

I think what you need is this function:

daynumberofyear - script and chart function ‒ Qlik Sense

daynumberofyear ‒ QlikView

Note that you can also remove the date() function from your expression.

May you live in interesting times!
Anil_Babu_Samineni

Year(Today()) returns number only.. When we add Date() as always it takes as String

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
pradosh_thakur
Master II
Master II

may be this

Today() - YearStart(Today())

Learning never stops.
prma7799
Master III
Master III

Try like this

=DayNumberOfYear(Today())

Anonymous
Not applicable
Author

wow this works!

I used (DayNumberOfYear(today())) Thanks a lot Onno!