cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

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
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 Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

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.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 140 members 1,672 guests
Please welcome our newest community members: