ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

DateTimeAdd Multiple Days

timioluwatimi
5 - Atom

[DateColumn2] = DateTimeAdd("2021-01-30", 10, "days")   will return   data from  10 days after 30th of January which is 9th February. How do I get data from the first 10 days  after "2021-01-30" instead?  i.e. every single day from 31st January till 9th February.  

11 REPLIES 11
Luke_C
17 - Castor
17 - Castor

@Gaurav_1604 

 

Assuming No. of Days is numeric the below should work:

 

datetimeadd([Date],[No. of Days],'days') 

Gaurav_1604
5 - Atom

Thanks Luke_C..

[No. of Days] is a numeric field. Actually I had term field as 1D, 3M, 6M , 1Y, 3Y etc. which I converted to days and am trying to use this field in 'GenerateRows' tool but am getting error message 'Argument 2 of DATETIMEADD is not a number'.

Labels
Top Solution Authors