Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
gerhardl
Creator II
Creator II

Isolate everything before space

Hi There,

In my load script, how can I identify everything in the field left of the first space character.

So I might have a name and surname in one field with a space in between, and it can be any number of characters, but I want to isolate just the name.

Thanks,

G

3 Replies
Gysbert_Wassenaar

subfield(MyField,' ',1) will give you the string before the first space in the contents of MyField.


talk is cheap, supply exceeds demand
gerhardl
Creator II
Creator II
Author

Sorry I founf another post explaining this and then un-marked mine as a question - not I can't mark your answer as correct.

But that works perfectly, thanks

er_mohit
Master II
Master II

subfield(fieldname,' ',1) as name