[英]TIBCO Spotifre Analyst v7.10: Delete Rows That Have Blank / Null Value in Column
I have the following table / report in Spotfire. 我在Spotfire中有下表/报告。 I want to delete / remove all rows that are null (don't have value) in the "Value" column.
我想删除/删除“值”列中所有为空(没有值)的行。
Id Date cDate Value
--------------------------------------------
A 10/17/2017 10/18/2017 1
A 10/17/2017 10/14/2017
A 10/17/2017 10/8/2017
B 11/19/2017 11/19/2017 1
B 11/19/2017 11/30/2017
I DO NOT want to filter for Value = 1 to achieve the above. 我不想为Value = 1进行过滤以实现上述目标。 The goal is to delete unnecessary rows.
目标是删除不必要的行。
Is this possible to do in Spotfire? 在Spotfire中可以这样做吗?
I want the resulting table /report to look like this: 我希望结果表/报告看起来像这样:
Id Date cDate Value
--------------------------------------------
A 10/17/2017 10/18/2017 1
B 11/19/2017 11/19/2017 1
Spotfire does not manage your data for you. Spotfire不会为您管理数据。 what you're asking isn't possible.
你问的是不可能的。
you have listed the solution there, however, which is to filter out rows that do not contain [Value]
of 1. you can use either the Filters Panel or a Data Limiting Expression to accomplish this. 您已经在此处列出了解决方案,该解决方案是过滤掉不包含
[Value]
为1的行。您可以使用“ 过滤器面板”或“ 数据限制表达式”来完成此操作。 if that doesn't solve your issue, please provide more information about why you think you need to physically delete the rows. 如果那不能解决您的问题,请提供更多有关为什么您认为需要物理删除行的信息。
EDIT 编辑
with the extra info, there's a bit of a hacky solution you can use. 有了额外的信息,您可以使用一些棘手的解决方案。 again I will stress that the correct way to solve this problem is at the data level;
我再次强调,解决此问题的正确方法是在数据级别; Spotfire is not here to manage your data, rather to help make sense of it :)
Spotfire并不是在这里管理您的数据,而是帮助您理解它:)
but you can reproduce the results you want for the data set you posted by adding a pivot transformation ( Insert » Transformations... , then choose Pivot ) configured like in this screenshot: 但是您可以通过添加如以下屏幕截图所示配置的数据透视转换( 插入 » 转换... ,然后选择数据透视 )来为发布的数据集重现所需的结果:
once you've pivoted to eliminate the other rows, you'll be able to join columns as you like. 一旦着手消除其他行,就可以随意连接列。
NOTE : this may not work in a larger data set! 注意 : 这可能不适用于较大的数据集! it depends on what you're doing with the dates.
这取决于您对日期的处理方式。 you can play around with the aggregation (eg, using
Last()
rather than First()
) but, and sorry to harp on it, this isn't the right way to solve this problem. 您可以尝试进行聚合(例如,使用
Last()
而不是First()
),但是遗憾的是,这不是解决此问题的正确方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.