You need to combine the Sum statement with a conditional expression of type IIf :
=Sum( IIf(Fields!Grades.Value = "A" or Fields!Grades.Value = "B" or Fields!Grades.Value = "C" , 1 , 0) )
Thus, the counter is only included in Sum , if Grades is A or B or C.
source share