简体   繁体   English

Tableau数据连接过滤器(用户管理)

[英]Tableau Data Connection filter (User Managed)

I have Big table in vertica which has time_stamp. 我在vertica中有time_stamp的大表。 I want to create global data connection filter for all worksheet, because all worksheets going to query data from same table. 我想为所有工作表创建全局数据连接筛选器,因为所有工作表都将从同一个表中查询数据。 So this Data connection filter give option to specify start date and end date in this filter to query the data. 因此,此“数据连接”过滤器给出选项可在此过滤器中指定开始日期和结束日期以查询数据。 So far I am able to create this Dataconnection filter but not able to make it flexible to change, also this filter would be placed on dashboard along with other worksheets. 到目前为止,我已经能够创建此Dataconnection过滤器,但不能灵活更改,该过滤器也将与其他工作表一起放置在仪表板上。

Any help on this please ? 请问有什么帮助吗?

Don't know much about Vertica, but why exactly do you want to do this filter? 对Vertica的了解不多,但是为什么您要执行此过滤器呢? If it's for performance reasons (querying little data is faster than querying much data), ok. 如果出于性能原因(查询少量数据比查询大量数据要快),可以。 All I can say it's I don't know how to make a data connection filter flexible. 我只能说是我不知道如何使数据连接过滤器灵活。

But it if it is for visualization purpose (show data only for a specific time frame), then you shouldn't worry about filtering the connection, and focus on filtering the display. 但是,如果它是出于可视化目的(仅显示特定时间范围内的数据),那么您就不必担心筛选连接,而专注于筛选显示。 Basically you can create 2 parameters (start date and end date) and create a calculated field to see if the time_stamp is between those parameters, and filter by it. 基本上,您可以创建2个参数(开始日期和结束日期)并创建一个计算字段,以查看time_stamp是否在这些参数之间,并对其进行过滤。

First we need to create two parameter(min_date,max_date).first parameter1 and give any name and select datatype:date and current date:give what ever you want.and select range,range value min and suppose min:12/3/2013 and set from field:your datasource and select orderdate. 首先我们需要创建两个参数(min_date,max_date)。第一个parameter1并给出任何名称并选择datatype:date和current date:给出您想要的任何东西,然后选择range,范围值min和假定min:12/3/2013并从field:your数据源中设置并选择orderdate。 create calculated field1: [parametername]-1>=[orderdate]. 创建计算的字段1:[parametername] -1> = [orderdate]。 second parameter2:same above but range max:27/7/2014(what ever). 第二个参数2:相同,但最大范围为:27/7/2014(无论如何)。 create calculated field2: [parametername]+1<=[orderdate]. 创建计算的字段2:[parametername] +1 <= [orderdate]。

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

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