在 Google Studio 中可视化累积列数据
Visualize Cumulative column data in Google Studio
我在 CSV 中有如下数据
State
Cumulative Number of cases
Date
India
0
12-Feb-2021
India
2
13-Feb-2021
India
5
14-Feb-2021
India
8
15-Feb-2021
India
17
16-Feb-2021
India
39
17-Feb-2021
我想取消累积 'Number of cases' 以使用 Google Studio 可视化折线图。 X 轴将为 'Date',Y 轴将为 'Number of cases'.
当我目前正在创建以 'SUM' 作为指标的折线图时,它只是添加了不正确的累积数字。例如,在 2021 年 2 月 14 日,点被绘制为 7,即 0+2+5 的总和。理想情况下,我希望绘制增量值。因此,对于 2021 年 2 月 14 日,2 月 13 日和 2 月 14 日之间的差异为 3。
任何人都可以分享如何做到这一点吗?提前致谢。
实现它的一种方法是:
- 图表:Time Series
- 维度:
Date
- 细分维度:
State
- 公制:
Cumulative Number of cases
; 运行 计算: 运行 Delta
Editable Google Data Studio Report (Embedded Google Sheets 数据源)和一张 GIF 来详细说明:
我在 CSV 中有如下数据
State | Cumulative Number of cases | Date |
---|---|---|
India | 0 | 12-Feb-2021 |
India | 2 | 13-Feb-2021 |
India | 5 | 14-Feb-2021 |
India | 8 | 15-Feb-2021 |
India | 17 | 16-Feb-2021 |
India | 39 | 17-Feb-2021 |
我想取消累积 'Number of cases' 以使用 Google Studio 可视化折线图。 X 轴将为 'Date',Y 轴将为 'Number of cases'.
当我目前正在创建以 'SUM' 作为指标的折线图时,它只是添加了不正确的累积数字。例如,在 2021 年 2 月 14 日,点被绘制为 7,即 0+2+5 的总和。理想情况下,我希望绘制增量值。因此,对于 2021 年 2 月 14 日,2 月 13 日和 2 月 14 日之间的差异为 3。 任何人都可以分享如何做到这一点吗?提前致谢。
实现它的一种方法是:
- 图表:Time Series
- 维度:
Date
- 细分维度:
State
- 公制:
Cumulative Number of cases
; 运行 计算: 运行 Delta
Editable Google Data Studio Report (Embedded Google Sheets 数据源)和一张 GIF 来详细说明: