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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
LehiVitor
Contributor
Contributor

Subfield with multiple characters.

I have several parts number that ends in '-S' put will also have a '-S' in the character string. I'm looking to only separate the '-S' at the end of the string - E71=L-S-B-S to E71=-L

I've tried using the Subfield functions but that will only return the characters left of the first '-S' -> "E71=L"

LehiVitor_1-1600190656968.png

 

Does anyone know how I might be able to return E71=L-S-B?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try this

=Left([Part Number], Index([Part Number], '-S', -1)-1)

View solution in original post

2 Replies
sunny_talwar

Try this

=Left([Part Number], Index([Part Number], '-S', -1)-1)
LehiVitor
Contributor
Contributor
Author

Thanks Sunny, that worked!