I have a query that returns records that occur during the current week. The criteria for this is: DatePart("ww", [ProductionDate]) = DatePart("ww", Date()) and Year( [ProductionDate]) = Year(Date())
In the query are several calculated fields:
Waste: [LF Run]-[LF Produced]
Waste%: Sum(([Waste]/[LF Run]))
Productivity: Sum(([LF Produced]/33.75))
There is another field called "Time" with the criteria of: In ("END-Days","End-Nights") so that only records pertaining to the end of shift for days and nights is considered.
What I'm trying to do is to sum up all the Waste% numbers in the query and then divide that by the total number of records to give me the average of Waste%.
Can someone help me please?
In the query are several calculated fields:
Waste: [LF Run]-[LF Produced]
Waste%: Sum(([Waste]/[LF Run]))
Productivity: Sum(([LF Produced]/33.75))
There is another field called "Time" with the criteria of: In ("END-Days","End-Nights") so that only records pertaining to the end of shift for days and nights is considered.
What I'm trying to do is to sum up all the Waste% numbers in the query and then divide that by the total number of records to give me the average of Waste%.
Can someone help me please?