I have a data output from an Alteryx workflow in the following format:
Truck number | Farm | Driver | Load Time | Process Date |
133 | 708022 Ont - Petropoulos & Petropoulos Holdings | Raj Singh | 2023-01-08 22:02 | 2023-01-09 |
139 | 708022 Ont - Petropoulos & Petropoulos Holdings | Frederick Tiffin | 2023-01-08 22:01 | 2023-01-09 |
152 | 708022 Ont - Petropoulos & Petropoulos Holdings | Jorge Fonseca | 2023-01-08 19:06 | 2023-01-09 |
133 | 753522 Ont - Fred Deboer | Raj Singh | 2023-01-09 0:29 | 2023-01-09 |
170 | 753522 Ont - Fred Deboer | Yuriy Khatnyuk | 2023-01-09 0:38 | 2023-01-09 |
193 | 753522 Ont - Fred Deboer | Miguel Mbala | 2023-01-09 3:14 | 2023-01-09 |
105 | Clark Bonnie Brae | Calvin Brown | 2023-01-09 8:51 | 2023-01-09 |
124 | Clark Bonnie Brae | Benjamin Christian | 2023-01-09 7:30 | 2023-01-09 |
141 | Clark Bonnie Brae | Demoy Forrest | 2023-01-09 8:30 | 2023-01-09 |
143 | Clark Bonnie Brae | Don Belmar | 2023-01-09 9:26 | 2023-01-09 |
There are days a driver will do two loads in a night. I want to add an IDs column to the loads based on the load time and want the output in the following format
Truck number | Farm | Driver | Load Time | Process Date | ID |
133 | 708022 Ont - Petropoulos & Petropoulos Holdings | Raj Singh | 2023-01-08 22:02 | 2023-01-09 | 1 |
139 | 708022 Ont - Petropoulos & Petropoulos Holdings | Frederick Tiffin | 2023-01-08 22:01 | 2023-01-09 | 1 |
152 | 708022 Ont - Petropoulos & Petropoulos Holdings | Jorge Fonseca | 2023-01-08 19:06 | 2023-01-09 | 1 |
133 | 753522 Ont - Fred Deboer | Raj Singh | 2023-01-09 0:29 | 2023-01-09 | 2 |
170 | 753522 Ont - Fred Deboer | Yuriy Khatnyuk | 2023-01-09 0:38 | 2023-01-09 | 1 |
193 | 753522 Ont - Fred Deboer | Miguel Mbala | 2023-01-09 3:14 | 2023-01-09 | 1 |
105 | Clark Bonnie Brae | Calvin Brown | 2023-01-09 8:51 | 2023-01-09 | 1 |
124 | Clark Bonnie Brae | Benjamin Christian | 2023-01-09 7:30 | 2023-01-09 | 1 |
141 | Clark Bonnie Brae | Demoy Forrest | 2023-01-09 8:30 | 2023-01-09 | 1 |
143 | Clark Bonnie Brae | Don Belmar | 2023-01-09 9:26 | 2023-01-09 | 1 |
Raj did two loads that night, so his first load at 10 AM is marked with ID 1 and his second load at 7 PM is marked with ID 2.
I am not sure if there is a tool in Alteryx that can help me with this. Thank you for any help.
Solved! Go to Solution.
@BS_THE_ANALYST @binuacs Thank you guys both solutions worked perfectly for me. Really appreciate all the help.
@BS_THE_ANALYST I will do that.. very new to this community so still learning. 😇. But you guys are the best..
User | Count |
---|---|
105 | |
82 | |
70 | |
54 | |
40 |