So, you have 2 control loops.
The inner control loop controls the speed of the motor.
The outer control loop acts on the inner one and controls the position.
So you have two PID controllers, one for inner control and one for the outer control, and two setpoints: Position setpoint and speed setpoint
Is that how i explained it?
Without a schematic or a control program it is difficult to get an idea of how it works.
You should still tune the internal PID first, and once the speed control is working properly, try to tune the external PID.
It seems that you comment that the internal speed control already works correctly, but the graphs show the opposite.