Last Record in a Time Period

I am tracking a metric that is continuously increasing in value (test coverage). I would like to create a timeline for the metric. In order to do so, I want to take the test coverage percentage value from the last record of a day.

I have tried various approaches using Tail, bottomcount etc but nothing seems to work. Any help on this?