Alteryx Designer Desktop Discussions

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

How to copy data from one column to another existing column

JeffJones
6 - Meteoroid

I have a column named Date with a list of various dates.  I would like to copy these dates over to  an existing column named MonthYear which all the values are currently null.   Any assistance would be much appreciated!

3 REPLIES 3
flying008
14 - Magnetar

Hi , @JeffJones 

 

Maybe you can add a formula tool in your workflow, then select the field [MonthYear], and type formula: = [Date]

binuacs
20 - Arcturus

@JeffJones There are multiple ways you can do this. Attaching a sample workflow for your reference

 

binuacs_0-1676728953767.png

 

SmitaLohande
8 - Asteroid

Hi,

 

I have attached the solution. Month year column is string and Date is date datatype.

 

In Date Time parse tool, convert the date to string for the 'Date' column, and in formula tool, replace the 'month year' column with the 'date' column (See 2nd screen shot). Finally then you can convert back the 'month year' column to a 'date' datatype.

 

Please mark it as a solution if it helped you :)

 

SmitaLohande_0-1676829128789.png

 

 

 

SmitaLohande_1-1676829326112.png

 

 

Labels