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: 
Pomna
Creator III
Creator III

Trimming characters in string

I have a field as shown below. I need to trim from the first letter to the first dash(-).

 

ISIGGN-ISIGGN-456

ISPRSD-ISPRSD-345

IMR-IMR-378

NSVD-NSVD-30

ISEHPR-ISEHPR-3919

 

I need it to read as follows

 

ISIGGN-456

ISPRSD-345

IMR-378

NSVD-30

ISEHPR-3919

Any suggestions will be appreciated.

Thanks

 

1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

mid(myfield, index(myfield, '-') + 1)

-Rob

View solution in original post

2 Replies
rwunderlich
MVP
MVP

mid(myfield, index(myfield, '-') + 1)

-Rob

Pomna
Creator III
Creator III
Author

Thank you Rob