We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Generate Rows on Single Date Column and Repeat Based on Another Column Value

GokcinWalch
5 - Atom

I have a data set in alteryx designer as table 1 below and would like to generate rows looks like to turn it into the table in table 2.  I appreciate the help!

 

Table 1:

GokcinWalch_0-1755291198108.png

Table 2:

GokcinWalch_1-1755291271309.png

 

 

4 REPLIES 4
Gaurav_Dhama_
12 - Quasar

Take the difference between the min date and the max date, use the generate rows tool to generate new rows with this difference as the parameter.

now you have lets say 20 rows of data. Add append tool and append the min date to it.

Now using formula tool, use dateadd function, to add days as per the recordid.

Join on the dates from original date and new dates.

Union all data, use multi row to get the remaining data to rows.

flying008
15 - Aurora

Hi, @GokcinWalch 

 

FYI.

录制_2025_08_16_08_35_33_388.gif

 

录制_2025_08_16_08_40_29_302.gif

 

Input   Output  
ItemStartItemDate ItemStartItemDate
8N5/31/2025 8N05/31/2025
8P6/3/2025 8N06/01/2025
8A6/12/2025 8N06/02/2025
8C6/19/2025 8P06/03/2025
8P6/22/2025 8P06/04/2025
8A6/25/2025 8P06/05/2025
    8P06/06/2025
    8P06/07/2025
    8P06/08/2025
    8P06/09/2025
    8P06/10/2025
    8P06/11/2025
    8A06/12/2025
    8A06/13/2025
    8A06/14/2025
    8A06/15/2025
    8A06/16/2025
    8A06/17/2025
    8A06/18/2025
    8C06/19/2025
    8C06/20/2025
    8C06/21/2025
    8P06/22/2025
    8P06/23/2025
    8P06/24/2025
    8A06/25/2025

 

 

 

GokcinWalch
5 - Atom

This will work!! THANK YOU!!

GokcinWalch
5 - Atom

Never mind I got it and worked beautifully.  Thanks again!

Labels
Top Solution Authors