Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
techvarun
Specialist II
Specialist II

Store Table header as field

Hi Experts,

I have an excel sheet which has fields with header like below.

31/10/201930/11/201931/12/201931/01/202029/02/202031/03/202030/04/202031/05/202030/06/202031/07/202031/08/202030/09/2020

 

Now I need to create a Field called months as below.

 

Month
31/10/2019
30/11/2019
31/12/2019
31/01/2020
29/02/2020
31/03/2020
30/04/2020
31/05/2020
30/06/2020
31/07/2020
31/08/2020

30/09/2020

 

 

How do i achieve this ? Please help

 

Labels (4)
1 Solution

Accepted Solutions
docpuddu
Creator
Creator

Ciao,

load from Table file, Excel then (as written above, in the 1st answer) -> Enable Transformation Step -> Rotate

 

Finally, in the resulting LOAD script  use the Date function to convert dates in the proper format.

Date(@1)

 

----
Directory;
LOAD
Date(@1)
FROM
row.xlsx
(ooxml, no labels, table is Foglio1, filters(
Rotate(right)
));

 

HTH.
Ciao,
/A

View solution in original post

3 Replies
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

when you load the excel, use "enable transformation step", then click on rotate

docpuddu
Creator
Creator

Ciao,

load from Table file, Excel then (as written above, in the 1st answer) -> Enable Transformation Step -> Rotate

 

Finally, in the resulting LOAD script  use the Date function to convert dates in the proper format.

Date(@1)

 

----
Directory;
LOAD
Date(@1)
FROM
row.xlsx
(ooxml, no labels, table is Foglio1, filters(
Rotate(right)
));

 

HTH.
Ciao,
/A

Brett_Bleess
Former Employee
Former Employee

Varun, did either of the two posts get you what you needed?  If so, do not forget to come back to the thread and use the Accept as Solution button on the post(s) that helped to give credit and let others know things worked.  If you are still working on things, leave an update.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.