I'm looking to see how many times a provider didn't use a continuous 4 hour stretch of time. In the example below Andrew didn't had 8 available hours but didn't use the last 4 so he used 1 session. Bob had 8 hours too but never went 4 continuous hours without seeing a patient.
I used a cross tab tool to get the data in the format below. Data is on vertical axis by provider, date, hour, and patients seen. Thought this would be easier.
I was trying to use a multi row formula but I'm stuck. Any guidance?
| Provider | Date | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Session |
| Andrew | 1/19/2021 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 |
| Bob | 1/19/2021 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 2 |