Completely new to Kettle and I am stuck on a problem that I could write a sub for in VB .NET in less than five minutes but Have been trying to work this out most of the day. I have an Excel spreadsheet that comes to me with no distinct Id's.
I need to add an Id for each record before I normalize the data. I can do it when I do an 'Add Sequence' after the Excel Input and before the 'Row Normaliser' but it starts with the number entered in the "Start at Value" in the 'Add Sequence'. I need that number to start at one greater than the MAX Id field from the table this data will be fed into. I can get that MAX value from the 'Table Input' but I just don't know how to feed it into the above stream before the 'Row Normaliser' to get this output.
Thanks for any help in advance.
I am using General Availability Release - 6.1.0.1-196
DOUCode | DT | Q45 | Q46 | Q47 |
WIC | 3/28/2016 | 4 | 3 | 4 |
Other | 3/15/2016 | 2 | 4 | 4 |
I need to add an Id for each record before I normalize the data. I can do it when I do an 'Add Sequence' after the Excel Input and before the 'Row Normaliser' but it starts with the number entered in the "Start at Value" in the 'Add Sequence'. I need that number to start at one greater than the MAX Id field from the table this data will be fed into. I can get that MAX value from the 'Table Input' but I just don't know how to feed it into the above stream before the 'Row Normaliser' to get this output.
Id | DOUCode | DT | Stmt | Score |
342658 | WIC | 3/28/2016 | Q45 | 4 |
342658 | WIC | 3/28/2016 | Q46 | 3 |
342658 | WIC | 3/28/2016 | Q47 | 4 |
342659 | Other | 3/15/2016 | Q45 | 2 |
342659 | Other | 3/15/2016 | Q46 | 4 |
342659 | Other | 3/15/2016 | Q47 | 4 |
Thanks for any help in advance.
I am using General Availability Release - 6.1.0.1-196