ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more 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
binu_acs
21 - Polaris

@terry10 another method using regex

image.png

Labels
Top Solution Authors