This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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!
Solved! Go to Solution.
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThis 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!
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 23 | |
| 22 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 25 | |
| 22 | |
| 20 |