1. If you want to avoid cases in which Point B is earlier than Point A, use this formula instead:
Instead of taking the absolute value of the time difference, you're just taking the difference, and returning 0 if the result would be negative.
2. So you're saying there could be duplicate identifiers in REG if one vehicle made multiple journeys? Do you have anything in the data identifying that it is a second journey? If not it's going to require a little more formula creativity. Can you post some more sample data and include an example of this? If you didn't reuse the ID for a vehicle taking a second journey then this wouldn't be an issue. But there's probably still a way to deal with it even if you do need to repeat IDs at times.
Bookmarks