I have a counter that resets each day at around 0:00 clock. How do I get the last/max values of each day.
The problem is this counter doesnt get reset at exactly 0:00. Its a little bit off.
How do I make sure i get the last value of every 24h window?