cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
heytherejem Member
Member

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

Accepted Solutions
Gordonlilj Established Member
Established Member

Re: Convert data type E+12 to Time Stamp

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

3 REPLIES 3
VijayP Regular Visitor
Regular Visitor

Re: Convert data type E+12 to Time Stamp

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

Highlighted
heytherejem Member
Member

Re: Convert data type E+12 to Time Stamp

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

Gordonlilj Established Member
Established Member

Re: Convert data type E+12 to Time Stamp

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

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 269 members 2,684 guests
Please welcome our newest community members: