简体   繁体   中英

Spotfire - Filtering a Table by Values in a Calculated Column

I am trying to filter a table visualization of all of my data by looking to see if a Study Number contains Activity A. If a Study Number contains Activity A then I want to filter for all rows containing those Study Numbers even if the Activity is not A. See mock data below. In my real data set I have ~55,000 rows.

I have created a calculated to return Study Numbers if Activity= A but I am not sure where to go from there. Thanks for any help.

在此处输入图片说明 在此处输入图片说明

If(UniqueConcatenate([Activity]) OVER ([Study Number])~="A","Y","N")

Will give you this resulting column that you can then filter on (or you can use the formula as a Data Limiting Expression:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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