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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
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
Partner Ambassador/MVP
Partner Ambassador/MVP

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

-Rob

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

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

-Rob

Pomna
Creator III
Creator III
Author

Thank you Rob