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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
twills12
Contributor III
Contributor III

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.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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
MVP
MVP

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 III
Contributor III
Author

Easy enough.. that will do it, thanks!