Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jagdishbr
Contributor III
Contributor III

Split the filed value and concatenate reverse

Can you please help me with Splitting the field value and concatenate:

Analyst Name(Current)

Gates, Bill

Haigh, John

Dundas, Caitlin

Analyst Name(Needed)

Bill Gates

John Haigh

Caitlin Dundas


Getting Error as Field Not Found <F2>


Test:

LOAD

AnalystName

FROM

QlikViewDocument.xlsx

(ooxml, embedded labels, table is RDump);

NoConcatenate

ConCat_test:

LOAD

SubField(AnalystName, ',', 1) as F1,

SubField(AnalystName, ',', 2) as F2,

Concat(F2& ' '& F1) AS AnalystName1

Resident Test;


Can you please throw some light where i'm going wrong.


6 Replies
vishsaggi
Champion III
Champion III

Try this ?

Test:

LOAD AnalystFirstName & ' ' & AnalystLastName AS AnalystName;

LOAD AnalystName,

     Subfield(AnalystName, ',',2) AS AnalystFirstName,

     Subfield(AnalystName, ',',1) AS AnalystLastName;

LOAD AnalystName

FROM

QlikViewDocument.xlsx

(ooxml, embedded labels, table is RDump);

ziadm
Specialist
Specialist

You have to use preceding load in order to fix this error

at the last load these two fields are not know when you concatenate them.  Therefore, you have to use preceding load

ConCat_test:

load * ,

Concat([F2]& ' '& [F1])  AS AnalystName1;

LOAD

SubField(AnalystName, ',', 1) as [F1],

SubField(AnalystName, ',', 2) as [F2]

Resident Test;

el_aprendiz111
Specialist
Specialist

Hi,

LOAD *, SubField(Name,',',-1) & ' ' & SubField(Name,',',1) as newName;
LOAD
Name
FROM
[..\..\..\Documents\Downloads\test1.xls]
(
biff, embedded labels, table is Name$);

jagdishbr
Contributor III
Contributor III
Author

Thank you, Problem Resolved..

jagdishbr
Contributor III
Contributor III
Author

Thanks for educating me on this. Problem Resolved

jagdishbr
Contributor III
Contributor III
Author

Thank you Problem Resolved