We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

GetPart to extract items from the end of a delimited list

terry10
12 - Quasar

Here's a tip:

 

Another Alteryx user asked me how to find the next to last (penultimate) item in a delimited list that could have a variable number of items in the list. She didn't find an answer on the Community, so I am sharing my answer here. 

 

GetPart([Field1], ",", REGEX_CountMatches([Field1], '\,')-1)

 

This works well, but I am curious how others do this.

BTW, this technique can also be use to identify file names within path strings using '\\' instead of '\,'  .

 

 

Last two parts.PNG

1 REPLY 1
binuacs
21 - Polaris

@terry10 another method using regex

image.png

Labels
Top Solution Authors