How to limit historical data (trends)?