Hi,
Need some help to identify the latest time when max value is reached and how many times that max value has been reached in that particular day.
Brief example for my question:
the max value for 1st Nov is 12 and the peak usage latest time is 1600
and 12 has reached 8 times in that particular day.
Output should be like:
Thank you in advance!
Need some help to identify the latest time when max value is reached and how many times that max value has been reached in that particular day.
Brief example for my question:
the max value for 1st Nov is 12 and the peak usage latest time is 1600
and 12 has reached 8 times in that particular day.
Date & Time | Max | Total |
11/1/2023 0:00 | 1 | 50 |
11/1/2023 1:00 | 3 | 50 |
11/1/2023 2:00 | 3 | 50 |
11/1/2023 3:00 | 3 | 50 |
11/1/2023 4:00 | 12 | 50 |
11/1/2023 5:00 | 12 | 50 |
11/1/2023 6:00 | 12 | 50 |
11/1/2023 7:00 | 12 | 50 |
11/1/2023 8:00 | 12 | 50 |
11/1/2023 9:00 | 12 | 50 |
11/1/2023 10:00 | 12 | 50 |
11/1/2023 11:00 | 4 | 50 |
11/1/2023 12:00 | 7 | 50 |
11/1/2023 13:00 | 6 | 50 |
11/1/2023 14:00 | 7 | 50 |
11/1/2023 15:00 | 8 | 50 |
11/1/2023 16:00 | 12 | 50 |
11/1/2023 17:00 | 9 | 50 |
11/1/2023 18:00 | 4 | 50 |
11/1/2023 19:00 | 4 | 50 |
11/1/2023 20:00 | 4 | 50 |
11/1/2023 21:00 | 4 | 50 |
11/1/2023 22:00 | 4 | 50 |
11/1/2023 23:00 | 4 | 50 |
11/2/2023 0:00 | 4 | 50 |
11/2/2023 1:00 | 4 | 50 |
11/2/2023 2:00 | 4 | 50 |
11/2/2023 3:00 | 4 | 50 |
11/2/2023 4:00 | 5 | 50 |
11/2/2023 5:00 | 5 | 50 |
11/2/2023 6:00 | 5 | 50 |
11/2/2023 7:00 | 7 | 50 |
11/2/2023 8:00 | 13 | 50 |
11/2/2023 9:00 | 12 | 50 |
11/2/2023 10:00 | 15 | 50 |
11/2/2023 11:00 | 14 | 50 |
11/2/2023 12:00 | 15 | 50 |
11/2/2023 13:00 | 17 | 50 |
11/2/2023 14:00 | 19 | 50 |
11/2/2023 15:00 | 17 | 50 |
11/2/2023 16:00 | 13 | 50 |
11/2/2023 17:00 | 10 | 50 |
11/2/2023 18:00 | 6 | 50 |
11/2/2023 19:00 | 5 | 50 |
11/2/2023 20:00 | 6 | 50 |
11/2/2023 21:00 | 6 | 50 |
11/2/2023 22:00 | 6 | 50 |
11/2/2023 23:00 | 5 | 50 |
Output should be like:
Date | Peak usage latest time | Frequency (max value) |
11/1/2023 | 1600 | 8 |
11/2/2023 | 1400 | 1 |
Thank you in advance!