The total sums of squares in an ANOVA is the squared distance from the grand mean.

Total sums of squares =