You probably need to use more than one product. It can be a shampoo for oily scalp complemented by a conditioner for dry hair. Also, you can use some haircare oil for split ends once in a while. Make sure that the cause of your oily roots and dry ends isn’t some medical issue. If so, you should visit your doctor.