Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a dataset taken from the web which stores dates in the form of 10 digit serial number and I am really struggling to convert it into a date format of DD/MM/YYYY. Formula such as below doesn't work for me. I'm receiving error.
#datetime(1970, 1, 1, 0, 0, 0) + #duration(0, 0, 0, [last_status_change_date])
Hopefully anyone can help me on this.
Thank you!
Solved! Go to Solution.
Sample File
https://www.dropbox.com/s/2mqbra1cuhtp0ga/date%20time%20conversion.xlsx?dl=1
Hi @jovendeluna21,
Looks like Unix Timestamp.
Have you solved your issue?
@MattAllington provided a solution with a sample pbix file attached.
Sample File
https://www.dropbox.com/s/2mqbra1cuhtp0ga/date%20time%20conversion.xlsx?dl=1
In the dialog box, copy and past this EXACTLY:
each Date.From([last_status_change_date]/86400)+#date(1970,1,1)
Hey there. "PriorStep" just refers to whatever the name of your prior step (I'm sure the step is not actually names "PriorStep"). So if you are choosing to use the Add Column dialog box (which is the right thing to do!) then you do not need to begin with "Table.AddColumn". Just click the "Add Custom Column" button, then in the dialog box, type: each Date.From([UnixTime]/86400)+#date(1970,1,1), type date)
--Nate
If your Unix date is a whole number, then this will work:
Table.AddColumn(PriorStep, "NewDate", each Date.From([UnixDate] + Number.From(#date(1970, 1, 1))), type date)
--Nate
Sorry, that's wrong. It's:
Table.AddColumn(PriorStep, "NewDate", each Date.From([UnixTime]/86400)+#date(1970,1,1), type date)
--Nate
Sounds like unix date format. https://exceljet.net/formula/convert-unix-time-stamp-to-excel-date
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
8 | |
6 | |
5 | |
5 | |
5 |
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |