Reduce the input data for trending