Hi Experts
I'm building an app where i will like to get a complete collection of days a person i working on a project.
I have a collection of people, start and end date and the project.
I will like to make a collection with:
One item for every day.
I will then make a gallery with all people, and dates and the color in dates people are on projects just be doing a lookup on name and date in the new collection.
I can't make the loop that will make an item between dates to work, can someone help me on this matter?
People data
ClearCollect(
PersonSchedule,
{ ProjectName: "Project A", Person: "John Doe", StartDate: DateValue("2024-07-01"), EndDate: DateValue("2024-03-10") },
{ ProjectName: "Project B", Person: "Jane Smith", StartDate: DateValue("2024-07-03"), EndDate: DateValue("2024-07-05") },
{ ProjectName: "Project C", Person: "Michael Brown", StartDate: DateValue("2024-07-05"), EndDate: DateValue("2024-07-18") },
{ ProjectName: "Project D", Person: "Sarah Johnson", StartDate: DateValue("2024-07-07"), EndDate: DateValue("2024-07-20") },
{ ProjectName: "Project E", Person: "David Lee", StartDate: DateValue("2024-07-09"), EndDate: DateValue("2024-07-22") },
{ ProjectName: "Project F", Person: "Emily Davis", StartDate: DateValue("2024-07-11"), EndDate: DateValue("2024-07-25") }
)
Result
| Date | Name | Project |
| 2024-07-01 | John Doe | Project A |
| 2024-07-02 | John Doe | Project A |
| 2024-07-03 | John Doe | Project A |
| 2024-07-03 | Jane Smith | Project B |
| 2024-07-04 | Jane Smith | Project B |
| 2024-07-05 | Jane Smith | Project B |
And so on.
This will make it quit simple to work with, maybe not the smartest way, but quit sure it will work.
Br
SSJ