Alteryx Designer Desktop Discussions

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

Data Duplication by Date value

Mostafa_Anwar
8 - Asteroid

Hi Everyone,  

I'm trying to find the best way to accomplish this, How to duplicate data based on date value Ex.

i have this dataset and i want to add a new column called Date, and all these rows will be duplicated based on date as per the attached excel sheet example.

Data Sample.png

2 REPLIES 2
danilang
19 - Altair
19 - Altair

Hi @Mostafa_Anwar 

 

Anytime you're looking to repeat a group of records for each record in another data set(Cross or Cartesian Join), the Append Fields tool is your best option.  It appends all the fields from the 2nd set to the 1st, duplicating rows as required

 

WF.png

 

The extra tools in the workflow are there to provide index values to sort the final output in the proper order.

 

Results.png

 

Dan

Mostafa_Anwar
8 - Asteroid

Awesome! Many thanks Dan

Labels