Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
twills12
Contributor II
Contributor II

Combine fields on load

I have loaded data and now have a table with 8 columns and 1 row.

Asset1 Date2 CompletedBy3Manager4Asset5Date6 CompletedBy7Manager8
Server5/25/2017DanKellyProcess4/24/2017MichaelMelissa

Within the load I would like to take this table and end up with 4 columns with 2 rows.

AssetDateCompletedByManager
Server5/25/2017DanKelly
Process4/24/2017MichaelMelissa

Seems simple but haven't been able to get it to work yet.

1 Solution

Accepted Solutions
sunny_talwar

Why don't you just load the data twice and do a concatenate

Table:

LOAD Asset1 as Asset,

     Date2 as Date,

     CompletedBy3 as CompletedBy,

     Manager4 as Manager

FROM ...;

Concatenate (Table)

LOAD Asset5 as Asset,

     Date6 as Date,

     CompletedBy7 as CompletedBy,

     Manager8 as Manager

FROM ...;

View solution in original post

2 Replies
sunny_talwar

Why don't you just load the data twice and do a concatenate

Table:

LOAD Asset1 as Asset,

     Date2 as Date,

     CompletedBy3 as CompletedBy,

     Manager4 as Manager

FROM ...;

Concatenate (Table)

LOAD Asset5 as Asset,

     Date6 as Date,

     CompletedBy7 as CompletedBy,

     Manager8 as Manager

FROM ...;

twills12
Contributor II
Contributor II
Author

Easy enough.. that will do it, thanks!