This table includes the historical item cost with the week of when the cost has been updated.
For example, the cost in WK1 was $10, and this cost remained the same until WK4 when it increased to $15.
| item | Cost | Week |
| Apple | $ 10.0 | 1 |
| Apple | $ 15.0 | 4 |
| Apple | $ 12.0 | 7 |
| Apple | $ 8.0 | 10 |
I want to make this table with full consecutive weeks as below, so the cost in WK 2 and WK3 should be 10.00 as well.
| item | Cost | Week |
| Apple | $ 10.0 | 1 |
| Apple | $ 10.0 | 2 |
| Apple | $ 10.0 | 3 |
| Apple | $ 15.0 | 4 |
| Apple | $ 15.0 | 5 |
| Apple | $ 15.0 | 6 |
| Apple | $ 12.0 | 7 |
I have created another table with full yearly weeks from WK1 to WK52... but I can't figure out a way to join these two tables or use a formula to make the cost table be come consecutively.
Also, some data do not star from wk1 or has an ending week as below
Therefore, for the above case, since we are now in WK21, I wish the formula can generate the lines for cost from WK1 - WK21 at $25
As the item cost table update by weekly, I want to make a query keep updating with consecutive week cost.
Thank you