简体   繁体   English

根据Spotfire中的另一个列值更新列值

[英]Updating Column value based on another column value in Spotfire

I wish to create a drop down menu in Spotfire using 5 values. 我希望使用5个值在Spotfire中创建一个下拉菜单。 Col1, Col2, Col3, Col4, Col5 Col1,Col2,Col3,Col4,Col5
where Col1,Col2,Col3,Col4 and Col5 are column headers in my data sheet. 其中Col1,Col2,Col3,Col4和Col5是我的数据表中的列标题。

I am creating a Pie Diagram visualization. 我正在创建一个饼图可视化。

Now, based on my selection Col1,Col2,Col3,Col4 and Col5, I wish to select another column in the Color by: property for the pie. 现在,基于我的选择Col1,Col2,Col3,Col4和Col5,我希望在饼图的Color by:属性中选择另一列。
For example: If I select Col1 then I should get "Col1 Complete" value in Color by: property for the pie. 例如:如果我选择“ Col1”,那么我应该在“派子”的“颜色依据:”属性中获得“ Col1 Complete”值。 If I select Col2 then I should get "Col2 Complete" value in Color by: property which is another column in the data set. 如果选择Col2,则应该在Color by:属性中获得“ Col2 Complete”值,该属性是数据集中的另一列。

I was able to create a drop down list using Property Control with the Col1-Col5 values in the list. 我可以使用Property Control创建一个下拉列表,并在列表中使用Col1-Col5值。 However, I am unable to handle second part where based on my selection of Col, I need the Color by: property value to change to "Col Complete" 但是,我无法处理第二部分,根据我对Col的选择,我需要将Color by:属性值更改为“ Col Complete”

Please advice. 请指教。 Thanks 谢谢

you can do this with a Document Property: 您可以使用文档属性来执行此操作:

  1. create a Drop-down list Property Control in a Textarea 在Textarea中创建一个下拉列表属性控件
  2. under Set property value through: choose Column selection , then choose the correct data table 在“ 通过以下方式设置属性值”选择“ 列选择” ,然后选择正确的数据表
  3. click New to create a String Document Property called PieColorBy with a starting value of Col1 . 单击“ 新建”以创建一个名为PieColorBy的字符串文档属性,其起始值为Col1
  4. open the Properties dialog for the visualization you want to change and access the Colors page 打开要更改的可视化的“属性”对话框,然后访问“颜色”页面
  5. set a Custom Expression like [${PieColorBy} Complete] . 设置自定义表达式,例如[${PieColorBy} Complete] notice that Complete is not in quotes. 请注意, Complete不在引号中。
  6. change the drop-down list to test 更改下拉列表进行测试

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

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