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

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
karan_kn
Creator II
Creator II

Combine two fields from same table and create new field.

Combine ID1 and ID 2 create new field ID.  Please refer the screenshot below

LOAD * INLINE [
ID1, ID2, Text
11, 1, dsfsdf
, 2, sdgfd
13, 3, ertert
14, 4, hgjghj
15, 5, uiuyi
, 6, rwerd
17, 7, fdfgh
];

 

Capture.JPG

1 Solution

Accepted Solutions
Marcos_rv
Creator II
Creator II

Try this:

 

FINAL_TABLE:
load
if( (isnull (ID1)) OR (LEN(TRIM(ID1)) = 0) , ID2, ID1) AS ID,
Text;

LOAD * INLINE [
ID1, ID2, Text
11, 1, dsfsdf
, 2, sdgfd
13, 3, ertert
14, 4, hgjghj
15, 5, uiuyi
, 6, rwerd
17, 7, fdfgh
];

saludos!!!!

View solution in original post

1 Reply
Marcos_rv
Creator II
Creator II

Try this:

 

FINAL_TABLE:
load
if( (isnull (ID1)) OR (LEN(TRIM(ID1)) = 0) , ID2, ID1) AS ID,
Text;

LOAD * INLINE [
ID1, ID2, Text
11, 1, dsfsdf
, 2, sdgfd
13, 3, ertert
14, 4, hgjghj
15, 5, uiuyi
, 6, rwerd
17, 7, fdfgh
];

saludos!!!!