Merging rows with same timestamp for time series

It appears a simpler solution is to use the “partition by values” transformation: