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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Last value in string

Hi,

I have Field values like,  001-AB-002-CD, 11-AB , AS-001-AK. Now I want to find the last value from string. For these values, I want to find CD,AB, AK

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

Try: subfield(Field, '-', -1)

- Marcus

View solution in original post

4 Replies
marcus_sommer
MVP
MVP

Try: subfield(Field, '-', -1)

- Marcus

Kushal_Chawda
MVP
MVP

=mid(Field, index(Field,'-',-1)+1)

Anonymous
Not applicable
Author

Hi,

Try right(Field, 2)

Not applicable
Author

Values can be 3 or 4 or 5 digits it is not fixed. So it will not work. But really thanks for the reply