I am struggling with a fairly simple task in knime. I have a column with the data like this:
List
01_01_01|01_01_02|01_01_03|01_03_01|01_03_02|01_03_03|01_03_05|01_04_01|01_04_02
Another column in the same dataset has the following column:
Position
01_01_03
All I want to do is a simple formula where if List contains Position then returns a boolean or the value.
It might be me but Rule engine doesn’t seem to be able to do string to string match.
If wrong, please correct or help me.
@tqAkshay95 Thanks, for the help but I actually came up with another solution becuase the dataset required to change the previous one. @armingrudd
So where I got stuck in that solution is a looping.
How can I dinamically join the columns as follows? The $List$ can have 1-30 positions and I need the workflow to handle that.
The $Position$ column can be disregarded, there will be more data coming for procession but I am capable of handling that. Only the dynamic joining causing me headache…thanks!!
Row to Column Header (4.7) or Row to Column Names (since 5.x) is not available in 4.6.
Isn’t it possible for you to install the most recent version (5.2.1)?
sadly not, this is the version that the company allows.
@armingrudd can you maybe help? I would like to have the dinamically joined result as shown in the picture. (Please disregard the Pisition column in the final result and the header names in the picture below)
I am trying looping because that seems like the quickest solution but gives me headache already…
Looks like you are looking for the Unpivoting node (“Unpivot” since 5.x).
After the Cell Splitter in your workflow, add the Unpivoting node, include array items in the “Value columns” and the “Type” column in the “Retained columns”: