I am trying to create a new table that contains a column with start of week and the hours estimated to be spent for that week on a per project basis.
| Start of Week | Project | Hours |
|---|---|---|
| 6/20/2022 | ABC_XXX | 10 |
| 6/27/2022 | ABC_XXX | 10 |
| 6/20/2022 | ABC_YYY | 40 |
| 6/27/2022 | ABC_YYY | 40 |
I have a table of dates representing the start of week for every project in the project table. week start date = [date]-weekday([date],2)+1
| Start of Week |
|---|
| 6/20/2022 |
| 6/27/2022 |
| 7/4/2022 |
The project table contains (among other things) the project name, estimated start date, duration, and hours per week.
| Project Name | Estimated Start Date | Duration in weeks | Hours Per Week |
|---|---|---|---|
| ABC_XXX | 6/13/2022 | 8 | 10 |
| ABC_YYY | 6/04/2022 | 27 | 40 |
I am having trouble getting off the starting line. I know I need to evaluate on a per project basis and loop through all of the dates in my date table but can't find a good method to start with. I have done a lot of more simple things with creating new tables and calculations but this one is a little more complicated for me to get started. Any advice would be greatly appreciated.
The ultimate goal for this data is to present a trend showing estimated project demand over time that can be filtered by project or summed across all projects as well as filtered by timeline and displayed in a calendar view but it all starts with getting the data into this format I believe.
