copilothow to calculate aggregates - Search