r/ExcelPowerQuery • u/AmazingSpiderman7502 • Apr 04 '25
Create missing months
I would like your help in this matter.
I have a table which contains all the SKUs being produced by a company. Each row has a date, there is one row per sku per month so ideally an sku being produced the whole year has 12 rows in the year.
There are some SKUs that are produced only some months of the year, so for example if it is only produced in January, June and September I would only have 3 rows of data.
I want a way for power query to help me fill the missing months as per costing the cost of sales in the months without production would be the last production cost. So I want to create 4 rows for feb, mar, apr and may that are exactly the same as January. That for all SKUs and all months without production.
Does anyone know a way of doing this?
View all comments
Show parent comment
2
u/AmazingSpiderman7502 Apr 04 '25
No, the problem is I don’t have the values of the months, I’ve been playing with creating a list of dates, making a list of SKUs and creating that table of all SKUs and all months to then cross join with my original table to see if there I can make the down fill. I hope it works