CapabilityTrendAnalysis function in