Row Filter based on Multiple Columns (Filter out Rows where all Columns have Missing Value)

Dear Knime Community,

I hope you can help with the following problem. I have a table where each column represents a KPI and each row a unique ID. I’d like to filter out the ID rows where none of the columns has at lease one value.

In the screenshot below the rows for the IDs 4, 7, 11 and 15 should be filtered out:

image

The result should look something like that:

image

Ideally the workflow could generate two tables: one without the filtered out rows and one with only the filtered out rows.

Any ideas on how to approach this?

Thanks a lot in advance!

Best
Eren
Example.xlsx (10.3 KB)

The first thing that comes to mind is using a Column Aggregator node to concatenate the row files (minus any missing values):

This is the result:

Then you can use a Row Filter to remove any row that has missing values in the Concatenate column:

2 Likes

@Er3n I have once created this solution to apply and combine several rules to a collection of columns and then aggregate the results. Will have to see if I can adapt this to your case later

2 Likes

Thanks a lot! It works :slight_smile:

Thanks @mlauber71 Will take a look at it :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.