【问题标题】:How can I change the text values in Google Data Studio?如何更改 Google Data Studio 中的文本值?
【发布时间】:2022-01-20 09:26:24
【问题描述】:

我有一个名为duration_type 的字段可以包含以下值,我想在我的图表中将它们显示为expected_values 字段:

duration_type expected_values
weekly Week
monthly Month
annual Year

【问题讨论】:

    标签: case google-data-studio


    【解决方案1】:

    创建一个新的expected_values 字段并创建CASE 语句:

    CASE
      WHEN duration_type = "weekly" THEN "Week"
      WHEN duration_type = "monthly" THEN "Month"
      WHEN duration_type = "annual" THEN "Year"
    END
    

    【讨论】:

      猜你喜欢
      • 2023-01-14
      • 1970-01-01
      • 2021-06-02
      • 1970-01-01
      • 2023-01-26
      • 2019-11-13
      • 1970-01-01
      • 2018-12-28
      • 1970-01-01
      相关资源
      最近更新 更多