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.
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.
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.
Go to Solution.
Go to Solution.
Does this do what you want to accomplish?
1. Use the Generate Rows Tool to create all the weeks.
2. Use the Append Tool to create all combinations of items and weeks.
3. Join to assign the known values to items and weeks.
4. Sort, the forward fill missing cost values using the Multi-Row Tool.
5. Reverse sort, then forward fill the remaining missing cost values that occur before the first known value (your Peaches example).
Combination of Generate Rows, Append, Join, Sort, Multi-Row Formula would do the magic!
@Philip Just realized you posted a solution while I am working on it :). Hi5 to you. We both have a same thought process!
Thank you very much for your helps!!
Love your methods, so geniuses!