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

Date Assignment Per Column

cfvito
7 - Meteor

I have this data where in I would like to insert dates for every 6th column. 

 

It has the same column name but the date changes.

 

Current Data:

 

F1VOLFCTAHTFCTFTEREQFTESCHFTENETSVLFCTADJVOLFCT2AHTFCT2FTEREQ2FTESCH2FTENET2SVLFCTADJ2VOLFCT3AHTFCT3FTEREQ3FTESCH3FTENET3SVLFCTADJ3
08:00:00105411.0627.9617-10.960137415.6836.074710.9397.88137391.2834.066126.94100
08:30:00157445.5543.7217-26.720241450.5766.0573.777.7296.12206448.7456.758225.25100
09:00:00305443.0581.2332-49.230465448.04122.9134.3811.480358432.5592.44138.546.06100
09:30:00389471.05108.7625.77-82.990569476.34158.53159.240.710454482.7129.2149.520.315.03
10:00:00473475.54132.4443.31-89.130621480.9174.14178.564.420496509.86148.44176.3327.8957.01

 

 

 

 

 

Expected Output:

 

 1/12/20231/12/20231/12/20231/12/20231/12/20231/12/20231/13/20231/13/20231/13/20231/13/20231/13/20231/13/20231/14/20231/14/20231/14/20231/14/20231/14/20231/14/2023
F1VOLFCTAHTFCTFTEREQFTESCHFTENETSVLFCTADJVOLFCT2AHTFCT2FTEREQ2FTESCH2FTENET2SVLFCTADJ2VOLFCT3AHTFCT3FTEREQ3FTESCH3FTENET3SVLFCTADJ3
08:00:00105411.0627.9617-10.960137415.6836.074710.9397.88137391.2834.066126.94100
08:30:00157445.5543.7217-26.720241450.5766.0573.777.7296.12206448.7456.758225.25100
09:00:00305443.0581.2332-49.230465448.04122.9134.3811.480358432.5592.44138.546.06100
09:30:00389471.05108.7625.77-82.990569476.34158.53159.240.710454482.7129.2149.520.315.03
10:00:00473475.54132.4443.31-89.130621480.9174.14178.564.420496509.86148.44176.3327.8957.01
2 REPLIES 2
abe_ibanez
9 - Comet

Hello, 

 

You could generate a row with the dates and then union the two tables. 

To generate a row with dates that increase by 1 day after 6 days, I would probably do the following: 

image.png

Start with a text input with the first date you want to start with:

image.png

Then generate rows to match the number of columns you need: 

image.png

Please note that I started with 0 rather than 1 since I will use this value for the formula. 

I then updated the date field with a formula that uses the row count to determine how many days we should add: 

datetimeadd([Date],floor([RowCount]/6),'days')

 

I then used a cross tab to turn the date column into a row:

image.png

cfvito
7 - Meteor

It worked! Thank you so much!

Labels
Top Solution Authors