[aggregation] Group measures in main categories.