Hi,
Need help in finding missing dates.
At the moment I have two collections.
1st collection called DATE_INFO which has say the last 4 years of dates. Each line represents a date.
2nd collection is Read_Dates where each line will have different dates although in date order.
Example Read_Dates
Row 1: 2023-10-15
Row 2: 2023-08-10
Row 3: 2023-06-05
Row 4: 2022-12-21
Now in the column of Days_Missing in my Read_Dates collection i need to see if any days are missing against the DATE_INFO collection.
Example Read_Dates for row 1 will check the range from row 2 & 1 ( Start Date 2023-08-10 to End Date 2023-10-15) against DATE_INFO to see if all dates in the range are there. If not I need to update the Days_Missing with the number of dates missing.
This will need to be done on each row in the Read_Dates collection where the next row is the start date and the current row is the end date.
I've tried a few things although can't seem to get the correct outcome.
Any help is greatly appreciated.
Thanks