Introduction
Nested aggregations help you group and analyze data inside other groups. This lets you explore details step by step, like looking inside boxes within boxes.
You want to find the average price of products grouped by category and then by brand.
You need to count how many users visited each country and then each city inside that country.
You want to see sales totals by year and then by month within each year.
You want to analyze customer reviews by product and then by rating score.