简体   繁体   English

Google Data Studio 中的两个日期过滤器

[英]Two Date Filters in Google Data Studio

I have a Google Sheet as the source data for a table in Google Data Studio.我有一个 Google 表格作为 Google Data Studio 中表格的源数据。 My table includes fields for "Sign Up Date" and "Cancellation Date".我的表格包含“注册日期”和“取消日期”字段。

I want to be able to filter so that I can choose a date range for "Sign Up Date" and a different date range for "Cancellation Date".我希望能够进行过滤,以便我可以为“注册日期”选择一个日期范围,为“取消日期”选择一个不同的日期范围。 For example, show me all records where the "Sign Up Date" is between Jan 1 to Jan 31, 2021, and where "Cancellation Date" is between Aug 1 to Aug 31, 2021.例如,显示“注册日期”在 2021 年 1 月 1 日至 1 月 31 日之间以及“取消日期”在 2021 年 8 月 1 日至 8 月 31 日之间的所有记录。

As far as I can see you can only choose one Data Range Dimension per table, and any date filter you add is tied to that date field.据我所知,您只能为每个表选择一个数据范围维度,并且您添加的任何日期过滤器都与该日期字段相关联。

Is there any way I can have separate date filters for each of my date fields?有什么办法可以为我的每个日期字段设置单独的日期过滤器吗?

Two Range Slider Community Visualisations could be used (one for each of the date fields, Sign Up Date and Cancellation Date ).可以使用两个范围 Slider社区可视化(一个用于每个日期字段, Sign Up DateCancellation Date )。

1) Accessing the Range Slider : 1)访问范围 Slider

  1. Click the Community Visualisations and components icon on the toolbar:单击工具栏上的社区可视化和组件图标:3个
  2. Select +Explore more to view all: Select +Explore more以查看全部:4个
  3. Choose the Range Slider chart from the displayed Community Gallery:从显示的社区图库中选择Range Slider图表:5个
  4. Click "Allow" to grant access to the respective Community Visualisation :单击“允许”以授予对相应社区可视化的访问权限:6个

2) Using the Range Slider : 2)使用范围 Slider

2.1) Sign Up Date Range Slider 2.1) 注册日期范围 Slider

Create both Range Sliders below and adjust the date range as required, in this case 01 Jan 2021 to 31 Jan 2021 for Sign Up Date and 01 Aug 2021 to 31 Aug 2021 for Cancellation Date :在下面创建两个范围滑块并根据需要调整日期范围,在本例中, Sign Up Date为 2021 年 1 月 1 日至 2021 年 1 月 31 日, Cancellation Date为 2021 年 8 月 1 日至 2021 年 8 月 31 日:

  • Column to filter on : Sign Up Date要过滤的列Sign Up Date
  • Cross-filtering : Select (☑) (this option makes sure the Range Slider also affects other charts)交叉过滤:Select (☑)(此选项确保范围 Slider 也影响其他图表)

2.2) Cancellation Date Range Slider 2.2) 取消日期范围 Slider

  • Column to filter on : Cancellation Date要过滤的列Cancellation Date
  • Cross-filtering : Select (☑) (this option makes sure the Range Slider also affects other charts)交叉过滤:Select (☑)(此选项确保范围 Slider 也影响其他图表)

Editable Google Data Studio Report (Embedded Google Sheets Data Source) and a GIF to elaborate: 可编辑的 Google Data Studio 报告(嵌入式Google 表格数据源)和一个 GIF 来详细说明:

9

It looks like there is not.好像没有。 What you can do it make different versions of advanced filters and use the "Between" function to compare numeric values.你能做什么它制作不同版本的高级过滤器并使用“Between”function 来比较数值。 So you have to convert dates to some kind of numeric value first.因此,您必须先将日期转换为某种数值。 Here is an example for this: Data Studio Date Range Filter on hour, minute level这是一个示例: Data Studio Date Range Filter on hour, minute level

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM