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 Dates Function

Tim6
8 - Asteroid

Hi There,

 

I am using the generate dates function to generate dates based on the start date and the end date.

 

Please see formula. 

 

Initialization Expression: [Start Date ]

Condition Expression: DateTimeAdd([Generated Date ], 1, 'day') <= [end date]

loop expression: DateTimeAdd([Generated Date ], 1, 'day')

 

Issue: I noted that the dates generated always stop 2 days before the actual end date. would anybody be able to help out with this? 

 

Thank you,

2 REPLIES 2
MarqueeCrew
20 - Arcturus
20 - Arcturus

@Tim6 ,

 

 make it easy on yourself and use our CReW macro:  https://gallery.alteryx.com/#!app/Generate-Date-Rows/5e31f42a826fd30ffcbf2c14  

 

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.

Hi @Tim6 

 

Please try for the Condition Express to have:

 

[Generated Date ] <= [end date]?

Labels
Top Solution Authors