At the moment, no, there isn't a feature that does this.... you'll have to do the pre-aggregating yourself (either at ingest time, or later via aggregatinos) and store the results.
It's something we've been talking though, and would like to offer some kind of functionality to do it. No hard roadmap plans yet.