Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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!