Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Parse IF using an expression

hellyars
13 - Pulsar

I have a Type ID stuck with the Title.  I know I can get to this by parsing, but it would require me to breakout all sorts of subsets.  I wish to avoid this.

 

Is there a way to write an expression that says. IF [GROUP]='01' THEN PARSE([TITLE], ([A-Z]{2}\d{3}).*$) ELSE [TITLE] ENDIF.  

 

START POINT.

GroupType IDTitle 
01 LH001 - Cervelo - Fast Bikes 

 

DESIRED OUTPUT

 

GroupType IDTitle 
01LH001Cervelo - Fast Bikes 

 

Again, I know I can use the Parse tool to do this....but I would prefer to use an Expression.

 

2 REPLIES 2
afv2688
16 - Nebula
16 - Nebula

Hello @hellyars,

 

Hope this helps

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

 

hellyars
13 - Pulsar

@afv2688  It works.  Sorry.  I went back and forth.  I actually had 90% of this formula, I forgot to add the '$1' to refer to the group.  THANKS.

Labels