Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
jksmith17
New Member

Convert Julian Date to Calendar Date

I am pulling in a date column from JDE and need to convert a Julian date (CYYDDD) to a calendar date.  Is there a good way to do this?  Thank you!

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @jksmith17,

 

I'm also making some SQL from JDE and used the query editor to make an additional column use the following code:

 

Date = #date(1900+Number.IntegerDivide([JULIEN_DATE], 1000),1,1)+#duration(Number.Mod([JULIEN_DATE], 1000)-1,0,0,0)

The Date is the column name I gave and the JULIEN_DATE is the column name change it to what fit's your model.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @jksmith17,

 

I'm also making some SQL from JDE and used the query editor to make an additional column use the following code:

 

Date = #date(1900+Number.IntegerDivide([JULIEN_DATE], 1000),1,1)+#duration(Number.Mod([JULIEN_DATE], 1000)-1,0,0,0)

The Date is the column name I gave and the JULIEN_DATE is the column name change it to what fit's your model.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



This worked!  Thank you!  I had tried some other variations of formulas, but they didn't quite work.  I think the CYYDDD format was throwing them off.  Thanks again for your help!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.