Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date manipulation

EvansM
9 - Comet

Hello, 

 

I need a help to add a day on the date. Please refer attached doc, also see the example below 

 

The scenario is when [DISCONNECTION_DATE] is null, I want to be populated with [CONNECT_DATE] +  1 day

 

Data sample

EvansM_0-1634843165818.png

 

Expected Results

EvansM_1-1634843279490.png

 

 

3 REPLIES 3
apathetichell
20 - Arcturus

if isnull([disconnection_date]) then datetimeadd([connect_date],1,"days") else [disconnection_date] endif (in formula tool - modifying [disconnection_date])

 

note - you'll need both fields to be dates to do that.

EvansM
9 - Comet

@apathetichell How can you do this with string data type? 

apathetichell
20 - Arcturus

The attached shows you the fastest way to get there - but you should practice with the date/time tool and watch the video on date/time here:

https://community.alteryx.com/t5/Interactive-Lessons/DateTime-Functions/ta-p/98952

Labels
Top Solution Authors