Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!
Free Trial

Alteryx Designer Desktop Discussions

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

How to move data in a different row to the first row by creating a new column?

Emmm
7 - Meteor

Dear helpers, really need your help on this! 

 

Please see attached for my input, I'm trying to create a new column (see result excel) called "new time". New time's data should = transactiondatetime for the same "businessdate", under the same "CODE", under the same "checknumber", under the same "menuitemnumber", when the "FLAG"=1. 

 

If there are more than two rows for the same item under the same CODE/checknumber/menuitemnumber, the "New time" should have data for the earliest transactiondatetime row, and leave it as empty for the later ones. 

 

I also need to calculate the date time difference between new time and transactiondatetime. 

 

Can someone please help with this? Greatly appreciated! 

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@Emmm 
Here is my try. 
I should have added more details but I am on a rush for something else. Sorry.

0703-Emmm-B.png

Emmm
7 - Meteor

Thank you so much!!! @Qiu 

Labels
Top Solution Authors