I have the following query which gets the sum of defect quantity per Defect Type :
SELECT [Defect Type] ,YEAR([Date]) AS YearOfDefect ,SUM([Total Defect Qty]