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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
DimSum
Contributor II
Contributor II

Extract data after last special character

Hi, I'm trying to identify a way to script returning data after the last instance of a character, which may not be in each instance.  In the example below, that character is '-'.  Any help on this would be appreciated.

 

Data Desired Result
ABC - 123 123
ABC - 1234 - 56 56
ABCD ABCD
Labels (1)
1 Solution

Accepted Solutions
edwin
Master II
Master II

if you use 1 as the 3rd parameter it will give you the first component, if you use -1, its the last component when the text is parsed using a specific delimiter.  the delimiter can be a string, here is used ' - ' instead of '-':

edwin_1-1675367039925.png

 

View solution in original post

4 Replies
edwin
Master II
Master II

try subfield

edwin_0-1675366871792.png

 

edwin
Master II
Master II

if you use 1 as the 3rd parameter it will give you the first component, if you use -1, its the last component when the text is parsed using a specific delimiter.  the delimiter can be a string, here is used ' - ' instead of '-':

edwin_1-1675367039925.png

 

DimSum
Contributor II
Contributor II
Author

Thank you very much!

edwin
Master II
Master II

yw