By grouping the previous results by grade, we get three categories corresponding to the unique values A, B, and C.

Make sure to pick GROUP, followed by BY, and finally grade.