Calculate the average and trend for bucket events