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