Representing trends and trend dependencies with multiple granularities