【发布时间】:2020-05-14 23:56:36
【问题描述】:
我在 BigQuery 视图中有以下数据:
当我想将此数据显示到 datastudio 时,我遇到了问题(可能是由于嵌套字段):
- 数据以不同的价格/指数日期出现两次
- 索引日期未正确显示时间 (HH:MM) 但卡住了 00:00
我。我想将每个项目的一行、价格和 index_date 和 index_date 显示为列,并包含第一行、每个字段的第一个数据、第二行第二个数据等。
Subject Price Index_date
1. Maison 95000 2019-10-28
2. Maison 80000 2019-12-27
二。我希望 index_date 与 BigQuery 中的数据一致(具有相同的 hh:mm)
谢谢!
编辑:查询结果的架构
[
{
"user_id": "6c65bb12-2441-465d-975c-81ba2b1a8d23",
"type": "private",
"zipcode": "69870",
"city": "Poule-les-Echarmeaux",
"region_name": "Rhône-Alpes",
"department_name": "Rhône",
"price": [
"95000",
"80000"
],
"index_date": [
"2019-10-28 21:46:00 UTC",
"2019-12-27 22:12:47 UTC"
],
"subject": "Maison de campagne",
"body": "text",
"list_id": "81711968"
}
]
【问题讨论】:
-
您能分享一下您的表的架构吗?在不知道架构的情况下很难构造查询。
标签: nested google-bigquery google-data-studio