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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
vimalmanavalan
Contributor II
Contributor II

Transpose Rows to Column transformation

Hello all,

I'm investigating on converting rows to column transformation as given below.

I have referred serval blog on row to column conversion couldn't manage to get any good solution yet .

Please let me know how can we achieve below output as shown .

 

qlikdoudt.jpg

1 Solution

Accepted Solutions
Saravanan_Desingh

Try this,

tab1:
Generic
LOAD class, 'row'&AutoNumber(Division) As row, Division;
LOAD * INLINE [
    class, Division
    10, A
    10, B
    10, C
    8, A
    8, B
    8, C
    8, D
    5, A
    5, B
    6, A
    7, A
    7, B
    9, A
];

View solution in original post

5 Replies
Lisa_P
Employee
Employee

Is this to load the data to create the Output or just present it?  If you just want to present it this way you can create a pivot table in the sheet view that contains class and Division as dimensions and then use the Only(Division) as a measure.

2e6ba9f21e03481682dbbbfd662af1a4.png

Saravanan_Desingh

Try this,

tab1:
Generic
LOAD class, 'row'&AutoNumber(Division) As row, Division;
LOAD * INLINE [
    class, Division
    10, A
    10, B
    10, C
    8, A
    8, B
    8, C
    8, D
    5, A
    5, B
    6, A
    7, A
    7, B
    9, A
];
Saravanan_Desingh

Output:

commQV36.PNG

vimalthehero
Contributor III
Contributor III

Thanks, its exactly the one I'm looking for 🙂

 

Saravanan_Desingh

you welcome