Forum Discussion

MYDATASTORY's avatar
MYDATASTORY
Resolver I
5 years ago

Time Diff between Times

Hi,

Please advice, thanks in advance

I have 5 columns  TrainStartTime, TrainName, Date, and TrainFishTime  I want to calculate the exact time the journey takes Duration 

1.I would like to calculate the exact duration including the minute's train takes (HH: MM) TrainFishTime-TrainStartTime

2. Total Duration of all the train journey by month(date column)TrainFishTime-TrainStartTime Group by Date/Month

3Total Duration of all the train journey by TrainName( TrainName column)TrainFishTime-TrainStartTime Group by TrainName

Time format HH:MM:SS

The expected results for the requirement is below on the Duration column 

 TrainStartTime TrainFishTime  Duration   |  TrainName  | Date
02:20:0002:50:0000:30:00   | TrainA           |01/7/2020
12:30:0001:30:0001:00:00   |TrainB             |09/2/2020

2 Replies