Does anyone know of a way to create a label that will list the maximum slope of a profile?

Thanks.