PowerBI/Power Query - 将 Unix 时间转换为 PQ DateTime

问题描述 投票:0回答:1

使用 PowerBI,我想将整数值(例如 1665158288、1665159555 等)转换为日期时间。

I have tried the following approach the date_output is whole number formatted, but encounter errors.

date_output = DateTime.From([upLoad_date] * 86400)


Each cell has errors such as below. 

DataFormat.Error:我们无法转换为日期时间。 细节: 1.4387E+14

excel powerbi powerquery powerbi-desktop m
1个回答
0
投票
#datetime(1970,1,1,0,0,0)+ #duration(0,0,0,[Unix])

© www.soinside.com 2019 - 2024. All rights reserved.