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

concatenating the values of 2 different fields to one field in a table

Hi all,

Temp:

Load

ListPriceTypeID,

'43' as NetPriceTypID

From abc.qvd;

In the ablove script, I want a single field called PriceTypeID that contains the values of both ListPriceTypeID and NetPriceTypID. How can I get it ?

For example if,

the values of ListPriceTypeID are

1

2

3

4

output should be:

PriceTypeID

1

2

3

4

43

Appreciate your help.

Thanks in advance,

Anusha.

2 Replies
christophebrault
Specialist
Specialist

Hi,

You can concatenate by loading the data twice :

Temp:

Load

ListPriceTypeID

From abc.qvd;

Concatenate(Temp)

LOAD

Temp:

Load

'43' as ListPriceTypeID

From abc.qvd;

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
balabhaskarqlik

May be this:

Temp:

Load

ListPriceTypeID,

'43' as NetPriceTypID

From abc.qvd;

NoConcatenate

Temp1:

Load

ListPriceTypeID

Resident Temp;

Concatenate (Temp1)

Load

'43' as NetPriceTypID

Resident Temp;

Drop table Temp;

Temp2:

Load

ListPriceTypeID as PriceTypeID

Resident Temp1;

Drop table Temp1;