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
Hi,
I am using a Odata service which always display date and date time data in Epoch format like this (examples)
For a Date field:
/Date(-2208988800000)/
For a DateTime field
/Date(1643042143000+0000)/
What I would like, is to have a function I can call - to add new custom coloumn that would convert this to readible date time.
Any ideas?
Today I manually do the transformation on each coloumn with steps- Basically I first transform the date coloumn (cleaning it to become just numbers) Step 1-3 and then add the custom coloumn.
1) Transform - Extract - Text Between Delimiters
2) Transform - Extract - 10 first characters
3) Change type to Int64
4) Add custom coloumn #datetimezone(1970,1,1,0,0,0,0,0) + #duration(0,0,0,[ColoumnName])
I would be nice to just have a custom function to call with inputting the original coloumn name and just getting the new formatted coloumn with correct date format. Any suggestions on how this function could look like?
Thanks!
Solved! Go to Solution.
Overhead of a function is not needed in this case when you can do it with a formula
= #datetimezone(1970,1,1,0,0,0,0,0) + #duration(0,0,0,Number.From(Text.Start(Text.BetweenDelimiters([EpochDate],"(",")"),10)))
Overhead of a function is not needed in this case when you can do it with a formula
= #datetimezone(1970,1,1,0,0,0,0,0) + #duration(0,0,0,Number.From(Text.Start(Text.BetweenDelimiters([EpochDate],"(",")"),10)))
So easy! Thanks
Check out the April 2026 Power BI update to learn about new features.
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 |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |