In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
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
19 - Altair
19 - Altair

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

 

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

alexnajm
19 - Altair
19 - Altair

@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
19 - Altair
19 - Altair

@nicktekippe I see it now - thank you!

Labels
Top Solution Authors