Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Splitting Columns by Dynamic Delimeter

trojan6ixman
5 - Atom

Hi all,

 

I am new to Alteryx but an avid user of Power Query. I am looking to split a column I have that looks like this:

 

Screenshot 2023-03-07 at 2.52.10 PM.png

Normally in Power Query I'd split by "/Project-" to just get everything to the right of that text string since that is the real Project ID that I want. How can I manage to do this in Alteryx? I have already split by decimeters "/" and "-" but I'd like a more dynamic way of doing it in case there may be random string characters in the ID itself like $^%. Is there a way to use a wildcard or something to only get what is to the right of "/Project-"? Anything helps, and I'm trying hard to learn! Thanks all.

 

 

4 REPLIES 4
binuacs
21 - Polaris

@trojan6ixman This can be achieved with the help of the regex tool

 

binuacs_0-1678231201862.png

 

flying008
14 - Magnetar

Hi, @trojan6ixman 

 

By formula, you can use classic function or regex expression:

1- formula by function only:

ReplaceChar(Replace([Project ID], '/Project-', ''), '^$&%_-', '')

 

2- formula by RegEx expression:

 

REGEX_Replace(Replace([Project ID], '/Project-', ''), '[^[:alnum:]]', '')
sparksun
11 - Bolide

sparksun_0-1678242400687.png

 

sparksun_2-1678242664634.png

 

trojan6ixman
5 - Atom

This has helped solve my problem. Thank you greatly for the help.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels