Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Extract month/year data and populate new column

Max_Lam
5 - Atom

Hi, I am new in Alteryx and would need some help to do the following:

 

From the excel file, the first row would contain the month and year which I need to extract.

Max_Lam_0-1623240854562.png

I need to add a new column to the existing dataset and populate the whole column with that specific month/year data.

 

I was able to extract the string of the month/year data using Regex but I could not find a way to populate the new column with the extracted string.

 

Thank you in advance!

3 REPLIES 3
Luke_C
17 - Castor
17 - Castor

Hi @Max_Lam 

 

Extracting that info is the hard part, now you can just use an append fields tool to have that data repeat for each row in the dataset. Here's a very simple example:

 

Luke_C_0-1623243948967.png

 

mceleavey
17 - Castor
17 - Castor

Hi @Max_Lam ,

 

I've extracted the Month and Year and used the Append tool to create the new columns.

 

mceleavey_0-1623244021668.png

 

mceleavey_1-1623244039789.png

 

 

 

Workflow attached, I hope this helps.

 

M.



Bulien

Max_Lam
5 - Atom

Thank you both for your help!

Labels
Top Solution Authors