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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
ekodami
Frequent Visitor

Converting Epoch Datetime into regular datetime format

Hi all, I am trying to convert the epoch datettime from my imported record into a more readable datetime. I am using a nativeQuery to my PostGre database. Here is the formula I have been using and the given result. The issue is that I am not get the minutes and seconds but only the date with a default 12:00:00 a.m

"SELECT DATE('1970-01-01') + (c1000000348/ 86400) AS ""Submitted Date"" from txxx".

 

I have tried this other formula adding a custom column as below

= Table.AddColumn(#"Change Type", "DateTime", each #datetime(1970,1,1,0,0,0) + #duration(0,0,0,[c1000000348]), type DateTime)

: but I am getting an error stating: "Expression.SyntaxError: The type identifier is invalid."

 

Pls assist

Thank you

 

1 ACCEPTED SOLUTION

It's type datetime, not DateTime.

 

--Nate

View solution in original post

2 REPLIES 2
ekodami
Frequent Visitor

Thank you Nate!

It's type datetime, not DateTime.

 

--Nate

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.