Free Trial

Alteryx Designer Desktop Discussions

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

Subtract the dates for each id

Pinky
8 - Asteroid

Hi,

 

I want to subtarct the each date for each id like below. Can anyone send me sample workflow? Thanks in advance!

 

IDDateSeconds
AAA2020-04-10 03:49:290
AAA2020-04-10 03:54:44315
AAA2020-04-10 04:10:37953
AAA2020-04-10 07:52:0213285
BBB2020-04-10 15:42:050
BBB2020-04-10 15:48:39394
BBB2020-04-10 15:52:52253
CCC2020-04-09 23:24:110
CCC2020-04-09 23:45:321281
CCC2020-04-10 00:16:191994
4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @Pinky I mocked up a workflow let me know what you think?

Pinky
8 - Asteroid

Thanks for your reply!

 

I am expecting the column output in seconds if i subtract the dates for each id like shown in table below.

 

IDDateOutput - Seconds
AAA2020-04-10 03:49:290
AAA2020-04-10 03:54:44315
AAA2020-04-10 04:10:37953
AAA2020-04-10 07:52:0213285
BBB2020-04-10 15:42:050
BBB2020-04-10 15:48:39394
BBB2020-04-10 15:52:52253
CCC2020-04-09 23:24:110
CCC2020-04-09 23:45:321281
CCC2020-04-10 00:16:191994
PhilipL
Alteryx
Alteryx

Example with Seconds Calculated in new field

JosephSerpis
17 - Castor
17 - Castor

Hi @Pinky apologies I misread your question have amended my worklfow.

Labels
Top Solution Authors