Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
Free Trial

Alteryx Designer Desktop Discussions

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

Calculate over records from another row.

Yury_Brunt
7 - Meteor

Hello,

 

Best to describe my question based on the example below. The original data is in black, red is what I need to add.

1) The StartTime of the next record needs to be the EndTime of the current, like the three arrow show. 

2) I need to calculate the difference between the current record and the next (line 3 - line 2). The original value could be higher, lower or the same as the value which need to be calculated.

 

Hope someone can help me out.

 

Thanks!

 

 

 

12-Mar-18 14-53-19.png

2 REPLIES 2
LordNeilLord
15 - Aurora

Hey @Yury_Brunt

 

Multirow Formula is your friend here :)

 

MultirowTime.PNG@LordNeilLord

Part time Tableau, Part Time Alteryx. Full Time Awesome


Data Lover

CharlieS
17 - Castor
17 - Castor

A Multi-Row formula tool is what you're looking for. I have attached an example that covers both of your requests.

 

Labels
Top Solution Authors