I have a query to sum total parts and total rejects. I need to add a column for the reject percent. I tried this formatted as percent:
Field: Reject %: [Rejected]/[Total Threaded]
Total: Sum
Its giving me these numbers:
Total threaded Total Reject Reject%
586 50 161.22% should be 8.53%
Here is the SQL:
What am I doing Wrong?
Field: Reject %: [Rejected]/[Total Threaded]
Total: Sum
Its giving me these numbers:
Total threaded Total Reject Reject%
586 50 161.22% should be 8.53%
Here is the SQL:
SQL:
SELECT [New Qry].Machine, Sum([New Qry].[Total Threaded]) AS [SumOfTotal Threaded], Sum([New Qry].Rejected) AS SumOfRejected, [New Qry].Shift, [New Qry].Connection, Sum([Rejected]/[Total Threaded]) AS [Reject %]
FROM [New Qry]
GROUP BY [New Qry].Machine, [New Qry].Shift, [New Qry].Connection;
What am I doing Wrong?