Tableau将我的UTC时间转换为12小时AM和PM

发布于 2025-01-23 01:10:40 字数 436 浏览 6 评论 0原文

所需的结果是在Tableau -Aviation数据中保留的UTC时间,因此始终需要UTC。

进口到Tableau的Excel列格式为数字,表示UTC时间:

yymmddhhmm in utc in utc或utc或' “时间

问题: Tableau将其解释为24小时时间,而不是UTC:

Tableau转换的Tableau屏幕截图

我认为我需要一个计算的字段,但无法找到解决方案。这个解决方案吗?谢谢

Desired outcome is UTC time retained in Tableau - aviation data therefore always need UTC.

The Excel column imported into Tableau is formatted as number and represents UTC time:

Excel screenshot of YYMMDDHHMM in UTC or "zulu" time

Problem: Tableau is interpreting this as 24hr time rather than UTC:

Tableau screenshot of tableau's conversion

I think I need a calculated field but haven't been able to find a solution. Is this fix possible? Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不语却知心 2025-01-30 01:10:40

与Excel一样,可以通过多种方式将日期值(或在您的情况下为日期时间值)以几种方式进行陈述。更改格式不会影响基本值,而只是如何呈现。

右键单击您的字段,按格式,选择您所需的日期格式,从左边边缘的格式窗格中。

如果您不认为Tableau正确地将字符串值转换为日期时间值,则可以使用DateParse()函数控制该转换

A date value (or in your case a date-time value) can be formatted for presentation in several ways, just as in Excel. Changing the format doesn’t affect the underlying value, just how it is presented.

Right click on your field, press format, choose the date format you desire from the format pane on the left margin.

If you don’t think Tableau is correctly converting your string values to date time values, then you can take control of that conversion with the DateParse() function

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文