I have a Webi report with a variable passed from the universe as NAME where the name is the person's last then comma then first and comma and title (i.e. Smith, John, Mr.)
I want to create three separate variables to use in columns in a report like:
from:
NAME |
---|
Smith, John, Mr. |
Jones, Samuel, Prof. |
to:
LAST | FIRST | TITLE | DETAIL |
---|---|---|---|
Smith | John | Mr. | Department Head |
Jones | Samuel | Prof. | Staff |
What code can be used to take the NAME field and parse it into three separate variables so to be used in a table like the sample above? Is there a way in Webi design to get all characters starting at position 1 up to the first "comma" and parse it out, then look for a "mid" set of characters between commas, and parse into another variable and lastly take the "RIGHT" side characters up to the first comma to the left of the right most character?