Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
soha1902
Creator
Creator

Subfield???

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...

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Load *, Mid(FIELD, Index(FIELD,'/',1)+1) as NEWFIELD Inline

[

FIELD

A/B/C

B/C/D/A

A/B

A

];

View solution in original post

5 Replies
Anonymous
Not applicable

use subfield(yourstring, '/', 2) to get text right of first char /

Not applicable

Hi Soha,

try like this in scripting...

subfield(string, '/', 2) as "Your New fieldName"

MK_QSL
MVP
MVP

Load *, Mid(FIELD, Index(FIELD,'/',1)+1) as NEWFIELD Inline

[

FIELD

A/B/C

B/C/D/A

A/B

A

];

soha1902
Creator
Creator
Author

I dont want right most only. Please see expected fields.

Anonymous
Not applicable

=

right(yourstring,len(yourstring)-FindOneOf(yourstring,'/',1))