Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Assinging Number to a Date

Hi

I want to assign a number to date where 1st Jul is start date. So  for eg, :

  • 1st July  = 1
  • 2nd July = 2
  • 3rd Jul =  3
  • ...
  • ...
  • 30 Jun = 365

How do i do this.

I have the following script below, however, the 1st Jan = 1.

num(EXP_REP_STATUS_DATE+1)-num(makedate(year(EXP_REP_STATUS_DATE),1,1)) as DayNumber,


Kind regards,

Nayan


1 Solution

Accepted Solutions
prma7799
Master III
Master III

Try like this

DayNumberOfYear (EXP_REP_STATUS_DATE,7)  as Daynumber

View solution in original post

3 Replies
prma7799
Master III
Master III

Try like this

DayNumberOfYear (EXP_REP_STATUS_DATE,7)  as Daynumber

Anonymous
Not applicable
Author

Thanks PM , It worked

prma7799
Master III
Master III

Welcome