Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

convert a vertical table to horizontal table

Hi Qlik Community,

Can someone assist with the below please?

I have a "vertical" table like this:

Data Table:

Ordernumber      OrderLineNumber        Entity          Value

10000054           1                               artcode        4911731130608

10000054           1                               amount        3

10000054           1                               price           7,828

.......

How to load these data to Qlik as one row:

Ordernumber        OrderLineNumber      Artcode                 Amount      Price

10000054             1                             4911731130608      3                7,828

...........

1 Solution

Accepted Solutions
vamsee
Specialist
Specialist

Hello,

Refer

The Generic Load

A:

Generic Load

Ordernumber,

OrderLineNumber,

Entity,

Value

;

LOAD * Inline [

Ordernumber,      OrderLineNumber,        Entity,         Value

10000054,          1,                               artcode,        4911731130608

10000054,          1,                               amount,        3

10000054,          1,                               price,          7,828

];

Final:

NoConcatenate

LOAD

Ordernumber,

OrderLineNumber,

price

Resident A.price;

Join(Final)

LOAD

Ordernumber,

OrderLineNumber,

amount

Resident A.amount;

Join(Final)

LOAD

Ordernumber,

OrderLineNumber,

artcode

Resident A.artcode;

DROP Tables A.artcode,A.amount,A.price;

Thanks.

View solution in original post

3 Replies
nsetty
Partner - Creator II
Partner - Creator II

Generic is a way to solve.

Please check below link

The Generic Load

vamsee
Specialist
Specialist

Hello,

Refer

The Generic Load

A:

Generic Load

Ordernumber,

OrderLineNumber,

Entity,

Value

;

LOAD * Inline [

Ordernumber,      OrderLineNumber,        Entity,         Value

10000054,          1,                               artcode,        4911731130608

10000054,          1,                               amount,        3

10000054,          1,                               price,          7,828

];

Final:

NoConcatenate

LOAD

Ordernumber,

OrderLineNumber,

price

Resident A.price;

Join(Final)

LOAD

Ordernumber,

OrderLineNumber,

amount

Resident A.amount;

Join(Final)

LOAD

Ordernumber,

OrderLineNumber,

artcode

Resident A.artcode;

DROP Tables A.artcode,A.amount,A.price;

Thanks.

Anonymous
Not applicable
Author

Fantastic, Vamsee!

Thanks, that's what I need!

AO