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: 
raadwiptec
Creator II
Creator II

transpose

I have the following table.

GName  GValue   userid

G1           100       xxxx

G2           31       yyyy

G3           67       dddd

G4           95       nnnn


i need the following output below


G1        G2       G3       G4

100       31        67         95

xxxx       yyyy       dddd       nnnn

6 Replies
trdandamudi
Master II
Master II

May be as below:

raadwiptec
Creator II
Creator II
Author

Hi,

I dont want to do this in an expression or in the front. I would like to achive this in the script.

sumeet-vaidya
Partner - Creator
Partner - Creator

Hi,

Kindly use the below code.

LOAD G4,

    G3,

    G2,

    G1,

    Gname

FROM

[..\Desktop\Test.xlsx]

(ooxml, embedded labels, table is Sheet1, filters(

Rotate(left),

Rotate(left),

Rotate(left)

));

Thanks & Regards

Sumeet

Anonymous
Not applicable

You can achieve it in Pivot Table

devarasu07
Master II
Master II

Hi,

also u can use right rotate instead of left while loading your source as excel file and enable transformation

Fact:

LOAD G4,

    G3,

    G2,

    G1,

    Gname

FROM

(ooxml, embedded labels, table is Sheet1, filters(

Rotate(right)

Untitled.png

trdandamudi
Master II
Master II

Have you taken a look at the attached file? It is all done in the script and not in the front end.