PostgreSQL:大(超过24h)间隔HH:MM:SS转换为日期(Excel,Power Query,Power BI适当的间隔读数)
我正在以间隔格式的HH:MM:SS这样的信息下载到Excel的数据:'233:51:46'。我需要在Power查询,PowerBi,最后在Excel中以这种形式使用此数据。
坦白地说,Excel是提到这三个提到的最聪明的工具,因为要将其读取为间隔,它将自动将该间隔从:'233:51:46'转换为全日期:'09 .01.01.1900 17:51:46' 。 我注意到Excel转换为每个间隔HH:MM:SS,其价值超过'23:59:59',值24:00:00和更大将以日期形状转换为'yyyy:mm:dd HH:MM:SS,因此Excel将其理解为一个很大的间隔(价值超过23:59:59)。
不幸的是,Power查询和PowerBi并不那么聪明,也不想像Excel一样进行任何类型的转换,并将更大的间隔视为错误。但是,当我给他们更大的间隔通过Excel转换为日期形状时,他们将其理解为时间,我可以在PowerQuery/PowerBi中进行转换。 我的问题是,是否有任何以与Excel相同的方式转换'233:51:46'的方法值大于23:59:59的PowerQuery/PowerBi。
在这里输入图像描述,
希望我不会在该问题描述中弄乱任何东西
I am downloading data from PostgreSQL to excel, in interval format hh:mm:ss such: '233:51:46'. I need to use this data in such shape in Power Query, PowerBi and finally in excel.
To be honest excel is the smartest tool from this three mentioned, because to read it as a interval it will automatically convert that interval from: '233:51:46' to a full date: '09.01.1900 17:51:46'.
I've noticed that excel convert to a date every interval hh:mm:ss which has value over '23:59:59', values 24:00:00 and bigger will be converted in a date shape 'yyyy:mm:dd hh:mm:ss, so that excel understand it as a big interval (value over 23:59:59).
Unfortunately Power Query and PowerBI aren't so smart and do not want to make any kind of conversion as excel does and treat bigger intervals (values over 23:59:59) as an error. But when I give them bigger intervals converted by excel to a date shape they understand it as time and I can make conversions within PowerQuery/PowerBI.
And my question is, are there any PostgreSQL ways to convert '233:51:46' in the same way as excel does, so that I will have done this conversion on the PostgreSQL level and download proper, understandable date format, intervals with bigger values than 23:59:59 to PowerQuery/PowerBI.
enter image description here
Hopefully I didn't mess up anything in that problem description
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论