Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

crosstable / LOAD question

Hi all,

i am loading data from an Excel file the following table structure:

Player
2011 Result2012 Aim2012 Result
2013 Aim2013 Result
2012 Q1 Aim
2012 Q1 Result
2012 Q2 Aim
2012 Q2 Result
2012 Q3 Aim
2012 Q3 Result
2012 Q4 Aim
2012 Q4 Result
John Smith175.000200.000
220.000
33.00039.00042.00037.00040.000
44.000
Steve Miller125.000160.000
188.000
23.00025.00026.00022.00030.000
31.000

I want to convert the table structure above into the following table structure:

Player
Interval Type
Year
Quarter
Aim
Result
John SmithQuarterly2012Q133.00039.000
John SmithQuarterly2012Q242.00037.000
John SmithQuarterly2012Q340.000
John SmithQuarterly2012Q444.000
John SmithYearly2012
200.000
John SmithYearly2013
220.000

etc...

How can this be done ? I have played around with Crosstable LOADS but nevver really could aschive the desired table structure.

Thanks a lot for help!

K

2 Replies
Anonymous
Not applicable
Author

You might want to try loading it in separate cross tables and joining the resulting tables up to create the desired structure

Not applicable
Author

1. is it necessary to take two column : Aim and Result ?

     can't it by one column Type with values {Aim, Result}

if yes try to look at qvw file i've posted - all you have to do is get the synthetic key out;) - if you woun't be able to do it yourself, sen me a message - i will try to help you:)