In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Datetime doubt

SahilArora3139
8 - Asteroid

Hi all

 

i want to ask how can i get no of days with one column only.

for example : i have scheduled date as:

 

2018-01-06

2018-01-07

2018-01-08

 

and i want to insert new column name: DAYSCOUNT

AND OUTPUT SHOULD BE 1 as there is only one day diff in all the dates. 

is it possible ?

 

please help

 

thank you

2 REPLIES 2
ShankerV
17 - Castor

Hi @SahilArora3139 

 

Yes, please follow the below steps.

 

Use Multirow formula and datetimeadd function to get the desired output.

ShankerV
17 - Castor

Hi @SahilArora3139 

 

One way of doing this.

 

ShankerV_0-1684352797322.png

 

datetimediff([Field1],[Row-1:Field1],"days")

 

ShankerV_1-1684352818895.png

 

 

Many thanks

Shanker V

Labels
Top Solution Authors