Hello, a question, you have your query aggregation functions ? as sum () or something? if so you should target within the grouping , like this:
select customer, year, product, sum(sales)
from t1
group by grouping sets LIMIT 2
(
(customer, year),
(product)
);