简体   繁体   English

TIBCO Spotifre Analyst v7.10:删除列中具有空白/空值的行

[英]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.

相关问题 Datafactory V2用空格替换“\\ N”空值 - Datafactory V2 Replace “\N” null value with blank 如何从Tibco ActiveMatrix的Java方法检查空值 - How to check null value from Java Method of Tibco ActiveMatrix 在多行中将Null替换为空白 - Replacing Null to Blank in multiple rows 当我尝试 select 行,其中列的修剪值不是 null 时,它仍然返回具有 null 值的行(雪花) - When I Try to select rows where the trimmed value of a column is not null, it still returns rows with null values (Snowflake) 用空值替换NULL值 - Replace NULL Values With a Blank Value mysql 查询过滤掉 NULL 或空白行 - mysql query filter out NULL or blank rows 列类型为long且具有Null值的JPA实体 - JPA entity with column of type long that have a Null value 我们可以在 HIVE 中为 BIGINT 列设置空值吗 - Can we have null value for BIGINT column in HIVE 如何从SSIS中的文本文件中将具有NULL值的列读取为NULL,而不必用随机的东西替换它 - how to read a column with NULL value from a text file in SSIS as NULL and not have to replace it with something random 在 pyspark 中执行 partitionBy 列时,消除特定列的 null 值行 - Eliminate null value rows for a specific column while doing partitionBy column in pyspark
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM