Copy one row in multiple rows with delimiter

Hello,
I need help for a given dataset:

Topic Related Number
Label 36,23
Material 35
Engine 36,12,53

Needed output: For every row were with more than one “related number” I need multiple rows with each related number like:

Topic Related Number
Label 36
Label 23
Material 35
Engine 36
Engine 12
Engine 53

Hi @germaneng

See this wf KNIME_project2.knwf (22.2 KB)
Schermafdruk van 2023-06-20 07-13-03
gr. Hans

5 Likes

Hi @germaneng & welcome to the KNIME forum

Complementary to @HansS posted solution, you will find below an alternative more compact solution using 3 nodes:

Hope this helps.

Best
Ael

8 Likes

About a compact solution :slight_smile: . I come to the conclusion that the row filter in my suggested solution is not necessary . In the UnPivot node is the option to “skip rows containing missing cells”
Schermafdruk van 2023-06-20 09-38-05
gr. Hans

4 Likes

Thank you both so much!

2 Likes

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