I have a table like shown below
| ID | Admit Date | Discharge Date | Encounter Days |
| 1 | 02/01/2018 | 02/06/2018 | |
| 1 | 03/13/2018 | 04/05/2018 | 35 |
How to find the number of days between the last discharge date and next admit date - I'm trying to do a LOOKUP of the next admit date for a patient . So the 'New Admit Date' column = Last discharge Date - Next Admit Date (highlighted in orange). It should not consider another patient's admit date. eg; Patient ID 1 has 35 encounter days. Should I be using Multi Row formula to do this task?