I have two separate fields (from two separated excel file inputs) to compare within Pentaho Kettle. The fieldname of the first excel file is called "location" and the fieldname of the second excel input is called "direction". Both fields have the datatype "String".
The entries of the "location" field are unique whereas the entries of the "direction" field are NOT unique. For example, they may contain the string "New York" several times.
What I want to do is to compare EACH entry of the "direction"-field with ALL entries of the "location"-field. As the location-field serves as a lookup table, I want to know which direction-entries are NOT listed in the location-entries.
The result should be a number of strings (directions) which do not appear in the location-lookup-table. In order to do this, I will need two loops (which are nested) for comparing each direction-entry with each location-entry. How can I achieve this using Pentaho Kettle? I have already tried it with Merge Rows (diff)- and the Modified Java Script Value-Steps but wasn't successful. Any suggestions on how to solve this?