I'm new to Pentaho Spoon (Kettle) and have the following task:
There is a excel table, it could look like this:
history class
name first name id
Doe John 213
Muster Max 118
biology class
name first name id
Parker Peter 844
The problem is that there are actualy more tables inside one xls-file. In this example there is the table for students of the history class and for the ones of the biology class.
What I need as output: a table for all students with a new field for each student which says which class he was part of. Example:
name first name id class
Doe John 213 history class
Muster Max 118 history class
Parker Peter 884 biology class
(my examples are extremly simplified)
How can I transform the input table to the output table? Thank you for your help!
You can't normally parse excel with multiple tables in pentaho. I.e. best way is to have multiple sheets for different tables.
If it's not possible, then there are at least two options:
Here is option 1. for your simple case:
Result after second step:
Result: