Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Complicated crosstable

Hi Community,

I have a slightly hard cross table transformation that I need to do.

Lets say I have the below table:

IDFieldA.1FieldA.2FieldA.3FieldB.1FieldB.2FieldC.1
1abcrty

And I want to transpose that to:

IDCaseField1Field2Field3
1Aabc
1Brt
1Cy

Is that possible in any kind of way?

Take into account that the number of Columns in each case are not fixed so I can have case 1 with 10 fields and case B with 1.

Any help appreciated.

3 Replies
Gysbert_Wassenaar

See attached qvw.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert you are really helpful,

Is there any way to have the data table exactly as the straight table is instead of making the dimension horizontal?

It would be really easier for calculations.

Gysbert_Wassenaar

Yes, you can add the keyword GENERIC before the word LOAD in the second load statement in the script.


talk is cheap, supply exceeds demand