Calculate the difference between two rows of the same field sorting by timestamp

Hi,

Have you first extracted the date from the timestamp.

Look at Select rows based on condition in precedents and followings rows … the problem is similar to yours