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

Creating new field in script

Hello,

Can't understand why this isn't working...

I have several sources in my script, that I am loading to create on main table called 'Data'.

In one part of the script, I load a field called 'Target'.

Later in the script, I LEFT JOIN a new table to 'Data', which includes a field called 'Type'.

I would now like to create a field called 'Type-Target' which is a combo of the two.

I have tried:

JOIN (Data)

LOAD*,

Type & Target as [Type-Target]

Resident Data;

This kind of works, but I get repeating rows. So for example, I will have two identical rows, one that has 'Type-Target' and one where the cell is null.

What am I doing wrong?


Thanks,

Jess

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Try

JOIN (Data)

LOAD * Resident Data;

Final:

Load *, Type & Target as [Type-Target]

Resident Data;

Drop Table Data;

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Try

JOIN (Data)

LOAD * Resident Data;

Final:

Load *, Type & Target as [Type-Target]

Resident Data;

Drop Table Data;

jessica_webb
Creator III
Creator III
Author

Perfect!

Thank you very much