Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

Parse Date and replace text

jenner85
8 - Asteroid

Hi - I am trying to get "Name" split to the date and then mapping the letter to Actual, Plan or Forecast. I tried a find replace, but it was cutting out the end of the field? Not sure how that is supposed to work. I was going to find the letter, replace with the Measure and then parse out into two columns for date and measure. Any help is appreciated. Thanks! 

 

 

NameDateMeasure
A Aug 2020Aug-20Actual
A Sep 2020Sep-20Actual
A Oct 2020Oct-20Actual
P Nov 2020Nov-20Plan
F Dec 2020Dec-20Forecast
P Jan 2021Jan-21Plan
2 REPLIES 2
AshleyL
Alteryx Alumni (Retired)

Hi @jenner85 --

 

You can use the Regex Tool to parse out the first letter from the Month-Year! You can then use a Formula to update the A,P,F to be Actual,Plan & Forecast! I've attached an example workflow.

If you don't want to use a Regex, you can use Text to Column to parse out the data in the first column based on a space as the delimiter.

Does this help?

Ashley

 

Regex.PNG

T_Willins
14 - Magnetar
14 - Magnetar

Hi @jenner85,

 

You can create the columns in a single formula tool:

 

Parse Date.jpg

 

Labels