Hi everyone,
I’m hoping someone for some guidance on a scenario that I can’t quite get my head around a solution for.
I need to split a column (a variable number of times) based on the delimiter “+”, then use each column produced by the split to lookup a value. These values need to be concatenated for all relevant split columns into one RESULT column.
I’ve prepared an illustration to help explain (and included the data in an Excel file for ease of replication):
Table 1: has an ‘Instructions’ column. This contains the combination of fields that should be produced as the Result.
Please note, each individual field is separated by a “+” but there will be some rows that don’t contain “+” and therefore need to return only one value (There is also no limit to the number of “+” that can be in each row)
Table 2: is a mapping file created to lookup the instruction fields from Table 1, to the relevant rows in the column ‘Value Field’ in Table 3.
Table 3: contains the values we want to return (in the Value column) based on a lookup to the ‘Value field’ col.
:
KNIME example 1.xlsx (10.0 KB)
Thanks very much in advance for any help you can provide - this one has got me going around in circles.
tp