Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Repeated Word in Field Value

Hi ,

I am having Field As Full Name, in that name is displaying as 'Judy Crawford Crawford', In need to Remove the Crawford Name in the Field Value

Expected Result:

Full name:

Judy Crawford

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

If the word count is different and you want only first two words then try this.

Load SubField(Data,' ',1) &' '& SubField(Data,' ',2)  as Newfield inline [

Data

Judy Crawford Crawford Crawford

];


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

10 Replies
mostwanted123
Creator
Creator

Try this,

=Subfield(FullName,' ',1) &' '&Subfield(FullName,' ',2)

Regards,

Pratik

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

LOad Data,If(SubField(Data,' ',2) = SubField(Data,' ',3),SubField(Data,' ',1) &' '&SubField(Data,' ',2),Data) as NewField  inline [

Data

Judy Crawford Crawford

ABC PQR

];

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
antoniotiman
Master III
Master III

Left('Judy Crawford Crawford',Index('Judy Crawford Crawford',' ',-1))

Regards,

Antonio

Anonymous
Not applicable
Author

It creating One more Duplicate word in Field Value

mostwanted123
Creator
Creator

example ?

Anonymous
Not applicable
Author

Judy Crawford Crawford Crawford

Anonymous
Not applicable
Author

it is within the Field How can i do this

mostwanted123
Creator
Creator

Can you share the expression that you have written ?

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

If the word count is different and you want only first two words then try this.

Load SubField(Data,' ',1) &' '& SubField(Data,' ',2)  as Newfield inline [

Data

Judy Crawford Crawford Crawford

];


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!