Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to Search in String

Hi,

I have a string which has different values in it, it was delimited with '/'. How to get last keyword in string. sometimes it was after 5th '/' and some time its after 4th '/' from starting. Is there anyway to get sub field from the end?

eg:

1)asr/098/yes/bcd/in

2)nfd/234/upl/nmd/a90/pak

OutPut:

1)in

2)pak

Labels (1)
1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Load SubField(Txt,'/',-1) Inline [

Txt

asr/098/yes/bcd/in

nfd/234/upl/nmd/a90/pak ];

View solution in original post

4 Replies
anbu1984
Master III
Master III

Load SubField(Txt,'/',-1) Inline [

Txt

asr/098/yes/bcd/in

nfd/234/upl/nmd/a90/pak ];

Not applicable
Author

substring(yourfieldname, '/',-1) as newfield

MK_QSL
MVP
MVP

=SubField(YourFieldName,'/',-1)

Anonymous
Not applicable
Author

Hi Anbu,

It's working, Thank you