Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
SGood
Contributor III
Contributor III

Merging Year from column into X Axis with Months

Hi,

I am importing from an excel spreadsheet, into #QlikView.  Along with a number of other columns, the table contains the following structure, with the Allocation year in a separate column from the months:

BP IDAllocation YearJanFebMarAprMayJunJulAugSepOctNovDec
888220200000.850.850.850.850.850.850.850.850.85
100372021000000000000.4
1003720220.40.40.40.40.40.40.40.40.40.40.40.4
100542022111111110000
1060320200.150.150.150.150.150.150.150.150.150.150.150.15
1060320210.150.150.150.150.150.150.150.150.150.150.150.15
1060320220.150.150.150.150.150.150.150.150.150.150.150.15

 

However, I need the year merged in with the month columns, to output like this:

BP IDJan-20Feb-20Mar-20Apr-20May-20Jun-20Jul-20Aug-20Sep-20Oct-20Nov-20Dec-20Jan-21Feb-21Mar-21Apr-21May-21
88820000.850.850.850.850.850.850.850.850.850.850.850.850.850.85
10037000000000000.40.40.40.40.40.4
100370.40.40.40.40.40.40.40.40.40.40.40.40.40.40.40.40.4
1005411111111000012345
106030.150.150.150.150.150.150.150.150.150.150.150.150.150.150.150.150.15
106030.150.150.150.150.150.150.150.150.150.150.150.150.150.150.150.150.15
106030.150.150.150.150.150.150.150.150.150.150.150.150.150.150.150.150.15

 

Any suggestions on how to create script to load the data into this structure would be greatly appreciated.

Thank you.

Sally

 

 

 

11 Replies
SGood
Contributor III
Contributor III
Author

Ah, don't know why I didn't try this earlier.  I have limited the load to 10 and it's now running.  So, I guess it has something to do with the volume of data.

SGood
Contributor III
Contributor III
Author

Thanks Steve, managed to get it working properly.  Greatly appreciate all the help you provided.  🙂

Kind regards.

Sally