@Franck_Bellot For your use case, you’ll want to use window() instead of aggregateWindow(). aggregateWindow() applies a new timestamp to the aggregate value using one of the window boundaries. Try this:
I was going to suggest this slightly different approach that I created in Grafana for a similar need (i.e. daily max table showing Date & Time and Peak Value).