Google Data Studio 多分区和类型图表
Google Datastudio multiple repartitions and types chart
我正在使用 Google Datastudio,我被一些奇怪的东西阻止了。
我想做一个全局系列和详细系列的图表。
但是要做到这一点,我有 2 个不同的重新分区,但我不知道该怎么做。
这是我的数据集示例:
Type
Detail
Country
Value
Date
type1
uk
60 000
2018-12-04
type2
detail-1
uk
15 000
2018-12-04
type2
detail-2
uk
11 000
2018-12-04
type2
detail-3
uk
4 500
2018-12-04
type1
usa
78 000
2018-12-04
type2
detail-1
usa
40 000
2018-12-04
type2
detail-2
usa
17 000
2018-12-04
type2
detail-3
usa
11 5000
2018-12-04
我想要一个基于“类型”的系列,另一个基于“细节”的系列,那么我应该针对不同的国家/地区使用过滤器。
我该怎么做?我在这个简单的问题上花了很多时间,但我无法实现。
我的数据来自 SQL Cloud for MySQL
会是这样的:
根据您的数据,您需要创建和使用第 3 个维度
case when Detail is null then Type else Detail end
或者如果 Detail 实际上 = '' 那么
case when Detail = '' then Type else Detail end
或确定
case when Detail is null or Detail = '' then Type else Detail end
我正在使用 Google Datastudio,我被一些奇怪的东西阻止了。
我想做一个全局系列和详细系列的图表。
但是要做到这一点,我有 2 个不同的重新分区,但我不知道该怎么做。
这是我的数据集示例:
Type | Detail | Country | Value | Date |
---|---|---|---|---|
type1 | uk | 60 000 | 2018-12-04 | |
type2 | detail-1 | uk | 15 000 | 2018-12-04 |
type2 | detail-2 | uk | 11 000 | 2018-12-04 |
type2 | detail-3 | uk | 4 500 | 2018-12-04 |
type1 | usa | 78 000 | 2018-12-04 | |
type2 | detail-1 | usa | 40 000 | 2018-12-04 |
type2 | detail-2 | usa | 17 000 | 2018-12-04 |
type2 | detail-3 | usa | 11 5000 | 2018-12-04 |
我想要一个基于“类型”的系列,另一个基于“细节”的系列,那么我应该针对不同的国家/地区使用过滤器。
我该怎么做?我在这个简单的问题上花了很多时间,但我无法实现。
我的数据来自 SQL Cloud for MySQL
会是这样的:
根据您的数据,您需要创建和使用第 3 个维度
case when Detail is null then Type else Detail end
或者如果 Detail 实际上 = '' 那么
case when Detail = '' then Type else Detail end
或确定
case when Detail is null or Detail = '' then Type else Detail end