
Originally Posted by
c991257
Hi,
I am trying to spread out some production figures on weeks.
My input data is start_date, end_date, and Qty. This I want to spread out on a weekly basis ( I have a row that contains week 1 - 52 (2006) - 1 - 52 (2007)) and keep sundays noneproductive.
Eg:
06-mar-06, 19-mar-06, 1200 units would give me 600 in week 10 & 11 ( days in week 10 and 6 days in week 11 @ 100 units/day.
This is simple enough.
However, it becomes more difficuelt once I have a range such as
08-mar-06, 19-mar-06, 1200 units which should give me 480 units in week 10 & 720 units in week 11 (4 days in week 10 and 6 in week 11 @ 120 units/day)
The idea is to place a production order in one row and be able to calculate each weeks production by summing up the rows.
Any ideas as how to solve this problem?
Bookmarks