2017-07-06 83 views
0

我试图在标题为“位置”的列中绘制数据。 此列包含以下数据:“左”,“右”,“中心”和“ - ”。不幸的是,我所拉动的数据自动输入“ - ”,当3个都不适用时。 当列中只有1个值时,我可以删除“ - ”,但在保留“左”,“右”或“中心”值时无法找出表达式将“ - ”更改为空“不变。 任何帮助将不胜感激!在Spotfire中删除特定值

+0

请分享样本数据集,以帮助了解这一要求更好。 – sayTibco

+0

自从你说它正在使用--- --- spotfire将这个作为NULL/Empty作为交叉表使用的备注。 – scsimon

回答

2

添加计算列,并使用Substitute(Arg1, Arg2, Arg3)

Substitute([Column],"--","") 

Spotfire Reference

Replaces all occurrences of Arg2 in Arg1 with Arg3. 
The search is case sensitive. 

Example: 
Substitute("Test","t","ting") 
Returns: 
"Testing"