简体   繁体   English

如何在 Tableau 中进行时间控制过滤仪表板上的多个工作表?

[英]How to have time control in Tableau filter multiple worksheets on Dashboard?

I have a dashboard in Tableau with two worksheets added.我在 Tableau 中有一个仪表板,其中添加了两个工作表。 Right now Worksheet #1 has Filter #1 added for Field #1.现在工作表#1 为字段#1 添加了过滤器#1。 Now that I'm adding Worksheet #2 with Field #2 (from a new table) to that dashboard, I'm uncertain how to use the same Filter #1 to restrict the time range for Field #2 and everything else on the dashboard.现在我将带有字段 #2(来自新表)的工作表 #2 添加到该仪表板,我不确定如何使用相同的过滤器 #1 来限制字段 #2 的时间范围以及仪表板上的所有其他内容.

To be clearer on my problem, here is my linkage in my data source I'm struggling with为了更清楚我的问题,这是我正在努力解决的数据源中的链接

Table #1.UserID <-> Table #2.User ID
Table #1.UserInsertedAt (Not linkable) Table #2.PetInsertedAt

Though the two tables are linked, the fields I want to filter by are two unlinkable fields (because user inserted at date is not correlated with when their pet was inserted at, just that the pet belongs to a specific user).虽然这两个表是链接的,但我要过滤的字段是两个不可链接的字段(因为插入日期的用户与插入宠物的时间无关,只是宠物属于特定用户)。

How can I apply the MONTH(User Inserted At) to the same control of MONTH(Pet Inserted At)?如何将 MONTH(User Inserted At) 应用于 MONTH(Pet Inserted At) 的同一控件? This would allow the viewer to slide the control and see users and, separately, pets added in this time range.这将允许查看者滑动控件并查看用户以及在此时间范围内添加的单独的宠物。

Right now tableau is: filtering for distinct pets for users added within control time range现在的画面是:为控制时间范围内添加的用户过滤不同的宠物

But I actually want: filtering for distinct pets for pets added within the time range (separate of when the user was inserted)但我实际上想要:为时间范围内添加的宠物过滤不同的宠物(与插入用户的时间分开)

Update: I've found a path forward but haven't perfected it yet.更新:我找到了前进的道路,但还没有完善它。 I need to most likely create a param that is a filter on both workbooks.我很可能需要创建一个作为两个工作簿上的过滤器的参数。 What I'm still missing is how to make my separate Start Date and End Date param into one to-from date range between the two, and for that range to default when opening the dashboard to a range only showing this month before user adjusts.我仍然缺少的是如何将我单独的开始日期和结束日期参数设置为两者之间的一个到从日期范围,以及在打开仪表板到仅在用户调整之前显示本月的范围时将该范围设为默认值。 在此处输入图像描述

If it is the same data source you can set the filter to apply to multiple sheets.如果它是同一个数据源,您可以将过滤器设置为应用于多个工作表。

在此处输入图像描述

If you want this filter to restrict other filter's selections, then set this one to "Add to Context".如果您希望此过滤器限制其他过滤器的选择,请将其设置为“添加到上下文”。

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

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