Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display last value in a string

Hi All,

hope you could help me with the following issue.

lets say I have a field which contains the following values:

'ABC>AB>A'

'ABCD>ABBBC>AD>D'

'MMMN>MKL>KLL>KLLL>L'

I want to create a new dimension that will display the values after the last '>' (the result will be: 'A','D','L'). I don't know how many characters will be before the last '>'.

is there a function I can use?

Hope I was clear enough.

thanks in advance

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Michal,

=Subfield('AAA>BBB>ACCC >L','>',-1)

Regards,

Antonio

View solution in original post

3 Replies
antoniotiman
Master III
Master III

Hi Michal,

=Subfield('AAA>BBB>ACCC >L','>',-1)

Regards,

Antonio

PrashantSangle

hi,

Try this

subfield('MMMN>MKL>KLL>KLLL>L','>',len(KeepChar('MMMN>MKL>KLL>KLLL>L','>'))+1)

replace string with field

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Thank you!