Hi,
I have several excel files (sheets) with different headers.
How can I union all headers, change the headers of each sheet files, and padding the value with empty string if the sheet has no that headers before?
I need to append the data from all files, but for now pentaho works only when all sheets have the same headers.
For example, I have two files - file1.xls and file2.xls.
The headers of each file are:
file1.xls
sheet2
file2.xls
sheet2
How can I change the headers to header1...header6 for all sheets before appending the data?
Thanks for any help,
gintau
I have several excel files (sheets) with different headers.
How can I union all headers, change the headers of each sheet files, and padding the value with empty string if the sheet has no that headers before?
I need to append the data from all files, but for now pentaho works only when all sheets have the same headers.
For example, I have two files - file1.xls and file2.xls.
The headers of each file are:
file1.xls
sheet1
header1
header2
header2
sheet2
header1
header2
header3
header4
header2
header3
header4
file2.xls
sheet1
header5 <-- header1 and header2 are at different columns
header6
header1
header2
header6
header1
header2
sheet2
header3
header4
How can I change the headers to header1...header6 for all sheets before appending the data?
Thanks for any help,
gintau