Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Gap Time for One Column Timestamp

Hello,

 

I've been stuck on this issue. So basically the challenge that I have is, I have a column of Timestamp and I want to know the gap in betweem the timestamp and the next time stamp (see table below).

 

To make it more clear, the goal is to subtract A3 to A2 and thats the results on C2 and so forth. Ive done this in excel I wonder how to do this on PowerBI DAX. Need help on this thanks!

 

 ABC 
1TimeStampHourResults 
21/18/20 6:1660:01:02 
31/18/20 6:1760:42:30 
41/18/20 7:0070:00:01 
51/18/20 7:0070:00:55 
61/18/20 7:0170:00:44 
71/18/20 7:0170:00:10 
81/18/20 7:0270:58:05 
91/18/20 8:0080:00:34 
101/18/20 8:0080:00:29 
111/18/20 8:0180:00:40 
121/18/20 8:0180:00:29 
131/18/20 8:0280:00:06 
141/18/20 8:0280:58:03 
151/18/20 9:0090:00:07 
161/18/20 9:009#REF!<-- error need iferror

1 Reply