Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am having one column which is having values like
A/B/C
B/C/D/A
A/B
A
Now my requirement is I want to create a new field with help of this field which contains all the values which comes after first '/' from left.
Expected field contains:
B/C
C/D/A
B
A
Thanks...
Load *, Mid(FIELD, Index(FIELD,'/',1)+1) as NEWFIELD Inline
[
FIELD
A/B/C
B/C/D/A
A/B
A
];
use subfield(yourstring, '/', 2) to get text right of first char /
Hi Soha,
try like this in scripting...
subfield(string, '/', 2) as "Your New fieldName"
Load *, Mid(FIELD, Index(FIELD,'/',1)+1) as NEWFIELD Inline
[
FIELD
A/B/C
B/C/D/A
A/B
A
];
I dont want right most only. Please see expected fields.
=
right(yourstring,len(yourstring)-FindOneOf(yourstring,'/',1))