Seems like a simple problem however I cannot find a solution. Can anyone assist?
Operators use a piece of equipment and then enter a series of checks for mainteance Items. Within that they enter the meter reading. To tabulate how much our entire fleet is being used and be able to slice it with any given day I need the usage field to populate with the amount of hours used based upon the last meter reading. I could set up a separate table with starts/ends of each week to get the max and min but this seems like a workaround. Matt
| DateTimeStamp | Vehicle | Reading | Usage |
| 1/1/2017 08:00:00 | a | 1 | 0 |
| 1/1/2017 08:00:01 | b | 2 | 0 |
| 1/1/2017 08:00:02 | c | 3 | 0 |
| 1/1/2017 16:00:03 | a | 4 | 3 |
| 1/1/2017 16:00:04 | b | 5 | 3 |
| 1/1/2017 16:00:05 | c | 6 | 3 |
| 1/2/2017 08:00:06 | a | 10 | 6 |
| 1/2/2017 08:00:07 | b | 11 | 6 |
| 1/2/2017 08:00:08 | c | 12 | 6 |
| 1/2/2017 16:00:09 | a | 15 | 5 |
| 1/2/2017 16:00:10 | b | 16 | 5 |
| 1/2/2017 16:00:11 | c | 17 | 5 |