Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
dawgfather
Creator
Creator

Remove everything before 3rd instance of a character

I have a data set that has a variety of data of any lengths. I am trying to trim off everything before (and including) the 3rd instance of a "\".

Example:

\\share1\test\folder

\\share.sharename.com\item\subfolder\somethingelse

\\server.us.domain.com\unanswered\question\please\help

 

...should yield:

test\folder

item\subfolder\somethingelse

unanswered\question\please\help

1 Solution

Accepted Solutions
tincholiver
Creator III
Creator III



Replace(Campo,('\\'&SubField(Campo,'\',3)&'\'),'')

View solution in original post

3 Replies
tincholiver
Creator III
Creator III



Replace(Campo,('\\'&SubField(Campo,'\',3)&'\'),'')
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

=mid(Campo, index(Campo, '\',3) + 1)

-Rob

dawgfather
Creator
Creator
Author

Worked like a charm...thank you!