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

Filter on Julian date

Hi, i have a sql load on my script and i would like to set a where condition based on the jualian date.

 

WHERE JulianDate > "Today minus 50 days"    

how this can be done with Julian date? this will increase efficiency of the SQL that will load only data of the last 50 days

Thank you

 

My julian date is as follow:

118001 (is the first day of 2018 - 01/01/2018)

119001 (is the first day of 2019 - 01/01/2019)

Labels (1)
5 Replies
tresesco
MVP
MVP

How would 13th Dec 2019 look like in your julian date format here?
qlikviewaf
Creator
Creator
Author

119347 

 

119= 2019  

 

347= is the number of the day

tresesco
MVP
MVP

Year notation is not very clear yet. Help me formulate a logic for that. How would years 2018, 1999, 2000 be represented then?
qlikviewaf
Creator
Creator
Author

the first 3 digit is retrieved in this way:  2019-1900 =119

2020  -1900 = 120 

tresesco
MVP
MVP

Got it. Thanks for the clarifications. You could try like:

 

Where  Num(MakeDate(Left(JulianDate,3)+1900)+right(JulianDate,3)-1) > Num(Today()-50)