concept aggregate in category sql

This is an excerpt from Manning's book SQL Server MVP Deep Dives Vol. 2.
The functionality provided here is similar to using the DISTINCT keyword, with the difference being slightly beyond the accessibility of aggregates. The most significant difference between the two is regarding the treatment of nonaggregate functions and subqueries. Figure 3 shows two queries (and their plans) that might seem similar in functionality but that are subtly and significantly different.
You might not have tried to create an aggregate over an existing aggregate, but had you tried, you’d have found that it wasn’t supported. For example, if I’d aggregated the sum of sales for a customer over each month and then wanted to calculate the average of these monthly totals, there was no easy way to do so.
In SQL Server 2008 R2, it’s now possible to create an aggregate over an existing aggregate. Based on the example that I just mentioned, I could build the following expression: