简体   繁体   English

Spotfire DropDown列表可以过滤整个页面?

[英]Spotfire DropDown list to filter entire page?

I have been desperately trying to figure out how to take a column, customer name, and be able make a drop down list that filters the entire pages visualizations so that when you have a specif customer selected it filters everything. 我一直在拼命地尝试找出如何选择一列,客户名称,并能够创建一个下拉列表来过滤整个页面的可视化效果,以便当您选择特定的客户时,它可以过滤所有内容。

I think I'm going down the right path my creating a property type string and setting it to unique values in that customer name column, but cant seem to figure out what to do next. 我认为我正在沿着正确的道路创建属性类型字符串并将其设置为该“客户名称”列中的唯一值,但是似乎无法弄清楚下一步该怎么做。 Even if i have to set it individually for each visualization that would be fine, but i cant seem to get this to work. 即使我必须为每个可视化单独设置它也可以,但是我似乎无法使它正常工作。

Can someone help me figure this out? 有人可以帮我解决这个问题吗?

I'm on spotfire 7.0 if that matters. 如果重要的话,我使用的是Spotfire 7.0。 Thanks 谢谢

Thank you in advance. 先感谢您。

@TPLEE - In order to apply filter to the visualization from the selected drop down, you have to insert the below case statement in 'Limit data using expression' section of the visualization properties as shown below. @TPLEE-为了将过滤器从选定的下拉列表应用于可视化,您必须在可视化属性的“使用表达式限制数据”部分中插入以下case语句,如下所示。

  • Right click on the visualization and go to properties. 右键单击可视化文件,然后转到属性。
  • Click on edit as shown in the picture and insert the below case statement and click 'Ok'. 单击编辑,如图所示,并插入以下case语句,然后单击“确定”。

Note: 'YourCOLUMNName' will be your column name from the data table that you are using and ${CustomerName} is your property control name 注意:“ YourCOLUMNName”将是您正在使用的数据表中的列名,而$ {CustomerName}是您的属性控件名

case
when "${CustomerName}"=[YourCOLUMNName] then true
when "${CustomerName}"="" then true
else false end

在此处输入图片说明

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

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