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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
moltra
Helper IV
Helper IV

Epoch Timestamp in milliseconds cannot convert to Date / Time

I am pulling in multiple Epoch Timestamp in milliseconds into Power Bi, for somereason Power Bi is displaying it as Scientific Notation.  ie 1584255600085 is showing as 1.58426E+12  I am trying to convert it to a Date Time format, but I keep getting errors.

 

I tried this formula that I found on another post on here. using this in a Custom Column.

 

 

#datetime(1970, 1, 1, 0, 0, 0) + #duration(0, 0, 0,[epoch]/1000)

 

 

But I get the follow error.

Expression.Error: We cannot apply operator / to types Record and Number.

 

I have tried changing the formating of the column to number, decimal and still getting an error.

 

Any help would be greatly appreciated.Details:
Operator=/
Left=
epochDate=1.58426E+12
Right=1000

 

 

 

 

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @moltra 

for me it works as appropriated

Снимок.PNG

I think not all of your [epoch] value has a right format. check it


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @moltra 

for me it works as appropriated

Снимок.PNG

I think not all of your [epoch] value has a right format. check it


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

I applied all the transformation that I had done on the data and then went back into Transform data and tried it again and it worked perfectly.  I am not sure what was causing it.  But thanks for your rapid response.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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