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
Anonymous
Not applicable

Convert data type E+12 to Time Stamp

Hello

 

I've used an API to pull New Relic data into Power BI and there is a column called Timestamp.1 which holds values that look like 1.5713E+12 and so forth. I tried converting to anything besides decimal number and it errors. 

Can I transform or add a new column to retrieve a time/date value? 

 

Timestamp.png

1 ACCEPTED SOLUTION

Hi,

 

If you want to convert it to datetime you could try the solution provided in this post

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

View solution in original post

5 REPLIES 5
NBMounika
New Member

Hi, 
I see that you were able to pull data from New Relic to Power BI using an API. Could you please provide the detailed process? 
Thanks in advance! 🙂 

Anonymous
Not applicable

 

may I know how did you integrate with Power BI?

VijayP
Super User
Super User

You have to use Split Column option. CAn you please share 2 or 3 Exact Values in each cell. Then I can explain thru screenshots




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

Hi @VijayP 

 

Three values:

1571264722889

1571304319052

1571264722889

 

Strange I was able to get these by pasting into Excel, they converted to number no problem. Power BI will not allow me to convert the truncated value. 

 

Thanks for helping me!

Jemma

Hi,

 

If you want to convert it to datetime you could try the solution provided in this post

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

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.