I make a calculation of the efficiency of production lines by multiplying the number of hours by lines.
And everything works fine but ...
When I added a new production line to the system in July, I get a funny situation.
In the months before I get a 90% efficiency In the months from July receives an average of 90%.
But if I choose all year (January to August) I receive 70% efficiency as the system multiplying the X +1 lines for all the year. How can I set it to multiplying by X until June and July to the end of the year will be multiplying with X +1 lines
Looks like you neeed a weighted mean. You need to record the number of lines for each month and weight the monthly efficiency by the monthly weight. IN your case it would be