在 Big Query 中使用来自 Unix 时间的日期和时间列创建 Data Studio 报告 Table
Create Data Studio Report Table with Date and Time Column from Unix Time in Big Query
我有 Unix 时间的 IOT 数据。我需要在 Data Studio table 报告中将其展示给第二个。无法完成这项工作。在 PubSub 函数中,我有:
d = new Date();
d.setTime(res[0] * 1000); // 1000 is for JS time
console.log( d.toISOString());
然后设置字段:
timestamp:d.toISOString(),
使用 BigQuery table 将字段显示为:
2018-07-06 23:44:49 UTC
这是正确的。 Data Studio 中的 'timestamp' 字段在 table 中显示为:
July 6, 2018
我需要为 table 和最终的图表获得更高的分辨率,精确到秒。我已尝试对数据源进行自定义查询,但无法让 Data Studio 显示更好的分辨率。
我尝试使用 TODATE(timestamp, 'RFC_3339', "%Y%m%d%H") 创建一个新字段,但不能只显示 2018 年 7 月 7 日的格式。无法让它达到更高的分辨率。
是的,我已经尝试了其他问题中建议的所有其他方法,但 none 与我正在尝试的相匹配,否则它们不会成功。
据我在 DataStudio documentation, this product doesn't support seconds for their date output formats 上看到的,它只支持最新的输出格式和 'mm' 日期类型。
我有 Unix 时间的 IOT 数据。我需要在 Data Studio table 报告中将其展示给第二个。无法完成这项工作。在 PubSub 函数中,我有:
d = new Date();
d.setTime(res[0] * 1000); // 1000 is for JS time
console.log( d.toISOString());
然后设置字段:
timestamp:d.toISOString(),
使用 BigQuery table 将字段显示为:
2018-07-06 23:44:49 UTC
这是正确的。 Data Studio 中的 'timestamp' 字段在 table 中显示为:
July 6, 2018
我需要为 table 和最终的图表获得更高的分辨率,精确到秒。我已尝试对数据源进行自定义查询,但无法让 Data Studio 显示更好的分辨率。
我尝试使用 TODATE(timestamp, 'RFC_3339', "%Y%m%d%H") 创建一个新字段,但不能只显示 2018 年 7 月 7 日的格式。无法让它达到更高的分辨率。
是的,我已经尝试了其他问题中建议的所有其他方法,但 none 与我正在尝试的相匹配,否则它们不会成功。
据我在 DataStudio documentation, this product doesn't support seconds for their date output formats 上看到的,它只支持最新的输出格式和 'mm' 日期类型。