on 2024 Dec 24 12:30 AM
i was trying to split a fullname with the below formula
as firstname , lastname (wherein fullname including with the middle name in it.)
Below Formula worked fine:
First Name=Left(Substr([Name];Length(Substr([Name];1;Pos([Name];" "))+2);Length([Name]));Pos(Substr([Name];Length(Substr([Name];1;Pos([Name];" "))+2);Length([Name]));" "))
Last Name=Right(Substr([Name];Length(Substr([Name];1;Pos([Name];" "))+2);Length([Name]));Pos(Substr([Name];Length(Substr([Name];1;Pos([Name];" "))+2);Length([Name]));" ")+2)
QUESTION : Is there anyother simpler way we can achieve this and also Mid funtion is not available in Webi?
LAST_NAME: Mid(PATRN_NAME,1,InStr(PATRN_NAME,',')-1)
Request clarification before answering.
Define the following variables:
v_FirstName: =Left([fullname];Pos([fullname]; " "))
v_LastName: =Right([fullname];Length([fullname])-Rpos([fullname]; " "))
...
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.