COMBINE RECORDS
Posted: Thu May 07, 2009 11:06 am
I have data in multiple rows that I want to combine as multiple columns in a row. While the 'combine records' worked and did combine the rows into the subrec column, I do not know how to split out this subrec to populate into multiple columns in a row.
Here is an example of my input data before 'combine record':
key data
1 aaaa
1 bbbb
1 cccc
1 dddd
After 'combine record' the view from the dataset looks like this:
key subrec
1 [() () () ()]
What stage do I use to name each section of the subrec? I've tried 'split vector', 'split subrecord' and transform without success.
p.s. I do not see a 'Vertical' option on the PIVOT stage. It is only for horizontal pivot.
Any suggestion that would make this work would be appreciated.
PTL
Here is an example of my input data before 'combine record':
key data
1 aaaa
1 bbbb
1 cccc
1 dddd
After 'combine record' the view from the dataset looks like this:
key subrec
1 [() () () ()]
What stage do I use to name each section of the subrec? I've tried 'split vector', 'split subrecord' and transform without success.
p.s. I do not see a 'Vertical' option on the PIVOT stage. It is only for horizontal pivot.
Any suggestion that would make this work would be appreciated.
PTL