Hi,
Assuming you're using a data flow to make those transformations, you can use the following formulas with a derived column
- FirstName : left(FullName, instr(FullName, ' '))
- LastName: right(FullName, length(FullName) - instr(FullName, ' '))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a column let us say "FullName" which have below sample data and I want to split the data into 2 derived column fields "FirstName" and "LastName", So I need to split the FullName filed based on only first space we find and need to ignore rest spaces if we have in that field.
The desired output for fields "FirstName" and "LastName" should be as below.
FullName | FirstName | LastName |
---|---|---|
AAA | AAA | Null |
AAA BBB | AAA | BBB |
AAA BBB CCC | AAA | BBB CCC |
AAA BBB CCC DDD | AAA | BBB CCC DDD |
Looking forward to getting your help
Hi,
Assuming you're using a data flow to make those transformations, you can use the following formulas with a derived column