In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

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