Depending on the values you often can’t have both at the same time.
For example: as climbing makes you slower and descending makes you faster, the computer will likely try to reach a certain speed before attempting to climb/descend.
To keep you in the air, the computer will often override some of your settings.
Do you use auto-throttle / Autopilot?