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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Mideai
New Member

undefined

image.jpg

 I have a problem with changing the numbers to date from 2012. Can I get help please, I'm stuck.

1 ACCEPTED SOLUTION

Hi @Mideai ,

 

Please try to add the following custom column.

 

= #duration(0,0,0,[Timestamp])+#datetime(1970,1,1,0,0,0)

 

vstephenmsft_0-1673510140778.png

You can download my attachment for more details.

Reference: How to - Unix Timestamp conversions in Excel and Power Query - (theexcelclub.com)

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
AlexisOlson
Super User
Super User

Assuming this is a Unix epoch timestamp, try

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

as suggested in prior posts:
https://community.powerbi.com/t5/Desktop/DAX-to-convert-Epoch-to-DateTime/m-p/142287

https://community.powerbi.com/t5/Desktop/Converting-UNIX-time-to-Date-in-PowerBI-for-Desktop/m-p/130...

AlB
Community Champion
Community Champion

Hi @Mideai 

What format are these dates on?

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

Time stamp is in Unix time

Hi @Mideai ,

 

Please try to add the following custom column.

 

= #duration(0,0,0,[Timestamp])+#datetime(1970,1,1,0,0,0)

 

vstephenmsft_0-1673510140778.png

You can download my attachment for more details.

Reference: How to - Unix Timestamp conversions in Excel and Power Query - (theexcelclub.com)

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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