Hi all,
I have a problem that I have been looking at for a couple days now and I can not quite get it to work.
I would like to calculate the cumulative percent failure of a certain product in my table.
:: Cumulative Percent Failure Example:
If you had 100 product shipped, and every month 10 units failed, you would have 10% failure the first month, 20% the second, and so on.
The fields in my table that I am concerned with are [Ship Year], which tells me what year the model shipped, [Model Number] which tells me which product line I am looking at, [QUANTITY] which tells me how many of the units from the product line there are (units produced), [M2F] which tells what month I am on (months to fail), and [SumOfDETAIL_QTY] which tells me how many units failed for that month.
Key factors:
 There is more than one product line in the table (130 possible)
 I need to only consider cumulative failures among alike product lines
I will include what I have done so far:
Here is the SQL code I am using to obtain how many of the products failed in a given month, depending on what year it shipped.
 SELECT Pre_Analysis.[Ship Year], Pre_Analysis.[Model Number], Pre_Analysis.M2F, Sum(Pre_Analysis.DETAIL_QTY) AS SumOfDETAIL_QTY, Shipping.Quantity

FROM Shipping INNER JOIN Pre_Analysis ON (Shipping.[Ship Year] = Pre_Analysis.[Ship Year]) AND (Shipping.[Model Number] = Pre_Analysis.[Model Number])

GROUP BY Pre_Analysis.[Ship Year], Pre_Analysis.[Model Number], Pre_Analysis.M2F, Shipping.Quantity;

Here is a picture of what the query produces as of now
http://img.photobucket.com/albums/v7...g?t=1181073506
Any help on this matter would be greatly appreciated.