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

Combining 2 different text values from the same field into one combined text value?

I am receiving some outputs that all other fields are the same except for one notes field has different notes when all the other info is the same.  I want to know how to combine them in the load script or set analysis(preferably load)?

Fieldnamesdata output1dataoutput2  
AffiliateCode|fa_num|seq#92922|492922|4  
accum_depr4,8114,811  
acq_date11/1/200911/1/2009  
AffiliateCode|dept|fa_class92922|8505|C177092922|8505|C1770  
amount4,8114,811  
date_to_start_depr11/1/200911/1/2009  
fa_descIDF SWITCH - CATALYST 3560IDF SWITCH - CATALYST 3560  
fa_statAA  
gl_asst_acct154120154120  
gl_asst_acct_unit185058505  
gl_asst_acct_unit417701770  
gl_exp_acct637041637041  
gl_res_acct267120267120  
life55  
locTORONTOTORONTO  
lst_dep_date9/1/20149/1/2014  
model5802458024  
tag44  
Uf_Legacy_InvoiceINV0081713INV0081713  
Uf_Legacy_PO057726057726  
units_depr6060  
units_tot6060  
AffiliateCode|acct_unit192922|850592922|8505  
NoteContentDOLEMAN TECH, INV0081716, PO #057926, (1) CATALYST 3560 48 10/100 POE+4
SFP IPB IMAGE
OLD NUMBER: G46-10-02-X7I want to combine these 2 fields into one field how do I do that? It is causing all the other fields to duplicate cause this is the one field that is different 
fa_num44
SpecificNoteToken7797177971

 

Thanks,

Josh

1 Solution

Accepted Solutions
Taoufiq_Zarra

@jmcdermott 

if I understood correctly

Data:

load Fieldnames,
	 if([data output1]=dataoutput2,[data output1],[data output1]&dataoutput2) as [data output1],
	 if([data output1]=dataoutput2,dataoutput2,[data output1]&dataoutput2) as dataoutput2
;

LOAD Fieldnames, 
     [data output1], 
     dataoutput2
     
FROM
[https://community.qlik.com/t5/New-to-QlikView/Combining-2-different-text-values-from-the-same-field-into-one/td-p/1707579]
(html, codepage is 1252, embedded labels, table is @1);

 

Capture.JPG

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

1 Reply
Taoufiq_Zarra

@jmcdermott 

if I understood correctly

Data:

load Fieldnames,
	 if([data output1]=dataoutput2,[data output1],[data output1]&dataoutput2) as [data output1],
	 if([data output1]=dataoutput2,dataoutput2,[data output1]&dataoutput2) as dataoutput2
;

LOAD Fieldnames, 
     [data output1], 
     dataoutput2
     
FROM
[https://community.qlik.com/t5/New-to-QlikView/Combining-2-different-text-values-from-the-same-field-into-one/td-p/1707579]
(html, codepage is 1252, embedded labels, table is @1);

 

Capture.JPG

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉