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

Configuring data for multiple dates

aiubxh8
7 - Meteor

I have a data set with a Start Date and End Date. I would like to configure the data so that there is one record for each month from start date to end date. For example, I have an event with Start Date 2017-08-01 and End Date 2017-10-30. I would like this event to become 3 separate records – one for 8/2017, one for 9/2017, and a third for 10/2017 (formatting not important).

I am not sure how to go about this. Any suggestions?

 

3 REPLIES 3
danrh
13 - Pulsar

You can do this through the Generate Rows tool.  It allows you to loop through data and create rows until hitting a parameter you set --- in this case, the end date.

 

Hopefully this helps!

Dan

Aguisande
15 - Aurora
15 - Aurora
 
DultonM
11 - Bolide

Hi @aiubxh8! Like @danrh said, the Generate Rows tool is perfect for this problem. I built out a slightly different solution that doesn't require a Formula tool.

Labels
Top Solution Authors