Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Remove data from field after date

vincent_gallo
5 - Atom

Hoping someone will able to help me with an issue I'm having....

 

I have string field field that includes dates and other data.  I only need the data from the field up up to the end of the date in the string.  The dates are random so all I know is it will be in the format mm/dd.  Date appears at random locations within the string.

 

For example:

 

Field currently has "CDX.NA.IG.38 06/27 82.93" and I only need "CDX.NA.IG.38 06/27"

 

Thanks in advance.

3 REPLIES 3
Emmanuel_G
13 - Pulsar

Hi @vincent_gallo ,

 

Find attached the way to do this easily with regex formula.

 

As long as the dates keep the mm/dd format, it will work regardless of the date values ​​in question.

 

Let me know if it works as you want.🙂

 

Emmanuel_G_0-1661891906455.png

 

vincent_gallo
5 - Atom

Emmanuel_G - thanks so much for the response.  Worked perfectly!

Emmanuel_G
13 - Pulsar

@vincent_gallo Good to know 🙂 !

Labels