Split duplicate lines by 1st,2nd 3rd etc..

Hi KNIME expert

May I ask how to build workflow for the following?
Any help would be appreciated.

I would like to add 1st , 2nd ,3rd etc for duplicate columns.

E.g

Customer Delivery date
A Nov1 1
A Nov2 1
A Nov1 2
B Nov2 1
B Nov2 2

And split data to avoid duplicate

ā†“

Customer Delivery date
A Nov1 1
A Nov2 1
B Nov2 1
Customer Delivery date
A Nov1 2
B Nov2 2

Take a look at


node
1 Like

Hello @erisu,

but what do you mean with split data? Do you need to process them differently? How many duplicates can you have for one customer for same date?

Br,
Ivan

1 Like

If you want to filter or mark the duplicates => duplicate row filter
If you want to know how often duplicates for one customer appear => Groupby

3 Likes

The duplicate row filter can be configured (advanced tab) so that it marks your entries https://hub.knime.com/knime/extensions/org.knime.features.base/latest/org.knime.base.node.preproc.duplicates.DuplicateRowFilterNodeFactory
Afterwards you can e.g. use row filter or splitter nodes to create the desired tables.

Best
Mark

4 Likes

Yes I need to both data but in separate files. Thank you for your help!

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