Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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))