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 Difference

nicktekippe
8 - Asteroid

I need an Alteryx formula that will return the number of days between CREATED_DATE and COMPLETION_DATE. Both columns are Date data types. If the CREATED_DATE and COMPLETION_DATE are the same day the formula should return 0.

Below is a sample of the dataset

 

Snap2.png

3 REPLIES 3
alexnajm
18 - Pollux
18 - Pollux

DateTimeDiff([COMPLETION_DATE],[CREATED_DATE],"days")

 

However, you may have to figure out a way to deal with those null values!

alexnajm
18 - Pollux
18 - Pollux

@nicktekippe I saw the email that this was marked as a solution but I don't see the acceptance on the post. Can you mark the answer as a solution? Thank you in advance!

alexnajm
18 - Pollux
18 - Pollux

@nicktekippe I see it now - thank you!

Labels
Top Solution Authors