Forum Discussion

saanah2019's avatar
saanah2019
Helper II
7 years ago

Subtract datetime from a column

Hi, so I have a datetime field in a column and I just want to create a new column/measure which subtracts the previous entry if the dates are the same.

 

I have time and I want to calculate the difference in mins.

timedifference (mins)
1/1/2018 5:00  
1/1/2018 5:3030 
1/1/2018 6:0030 
1/4/2018 6:00  
1/4/2018 6:4040 
1/6/2018 6:00  
1/7/2018 6:00  
1/7/2018 7:0060 
1/7/2018 7:3030 
1/7/2018 8:0535 
   
   
   

5 Replies