Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Assigning random dates in alteryx

Bharath
8 - Asteroid

Hi ,

 

I have 10000 records which I have to assign randomly between the dates jan 01, 2016 to may 26 , 2016. Please le tme know about it.

 

Thanks,

Bharath

2 REPLIES 2
michael_treadwell
ACE Emeritus
ACE Emeritus

There are 147 days (inclusive) between Jan 1, 2016 and May 26, 2016. Using the Formula tool you can create a column called [Random Date]:

 

DATETIMEADD('2016-01-01', RANDINT(146), 'days')

 

This will add a random number of days between 0 and 146 to Jan 1, 2016

Bharath
8 - Asteroid

Hi Michael,

 

yes it works. Thank you for helping me on this.

 

- Bharath

Labels