Hi David,
The aggregations are getting applied in the analytic view and hence you are getting the result like that.See the examples and the queries getting fired below:
What you are expecting is below:
With Analytic view , the below mentioned is happening:
Hope it helps you to understand it.
Regards,
Krishna Tangudu