Hello - I'm trying to figure out what workflow to use when adding multiple rows for a reservation greater than a day. For example, this is how the record comes in (first table):
Note: I add in the "Check" column to show where the reservations start and end date are not equal. In the second table, I manually add in a row for each day. I greatly appreciate the help.
Conclusion: For example, the raw data (table 1) shows one record for id 1. If I wanted to capture the duration of this reservation it would be 1 hour. Versus the cleaned data (Table 2), same record, the duration is 3 hours because I separated the reservation into 3 rows.
id | StartDate | EndDate | Check | StartTime | EndTime |
1 | 1/1/2018 | 1/3/2018 | False | 8:00 AM | 9:00 AM |
2 | 1/2/2018 | 1/3/2018 | False | 9:00 AM | 11:00 AM |
Final output. Cleaned after I manually add in the rows in excel.
id | StartDate | EndDate | Check | StartTime | EndTime |
1 | 1/1/2018 | 1/1/2018 | True | 8:00 AM | 9:00 AM |
1 | 1/2/2018 | 1/2/2018 | True | 8:00 AM | 9:00 AM |
1 | 1/3/2018 | 1/3/2018 | True | 8:00 AM | 9:00 AM |
2 | 1/2/2018 | 1/2/2018 | True | 9:00 AM | 11:00 AM |
2 | 1/3/2018 | 1/3/2018 | True | 9:00 AM | 11:00 AM |