Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

I have one table, woth to fields that i want to join

Hi,

I have two fields in the same table that contain phone numbers, one field is named Telephone and the other is named Line1, can I combine these two fields and create one field with all the numbers?

any ideas?

6 Replies
goro2010
Creator
Creator

data1:

NoConcatenate

LOAD Cust,

     Telephone,

     Line1

FROM

C:\test.qvd

(qvd);

Join (data1)

LOAD Line1 as Telephone

FROM

C:\test.qvd

(qvd);

Output:

out.PNG

PrashantSangle

Hi,

Yes you can

try like

LOAD Telephone&'-'&Line1 as phone from table

or

LOAD if(isnull(Telephone),Line1,Telephone) as phone from table


To get accureate ans please explain your requirement with sample data.


Regards,

Prashant

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
qlikview979
Specialist
Specialist

If 2 tables field name  are same go for concatenate  like


T1:

load

Telephone  

named Line1 

from ------xlsx);

concatenate  (T1)

T2:

load

named Line1  

Telephone

from ------xlsx);










PrashantSangle

Hi,

you are missing joining key. else it will do Cartesian join

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
goro2010
Creator
Creator

I agree with you, the question asked thou is just to join two fields, a 3rd will be required to make the joining key.

Anonymous
Not applicable
Author

If they are in the same table just do

Telephone & ',' & Line1 as CombinedField