Older dogs tend to be sway back because of lack of muscle. This is common and most likely is due to age.
Now with a younger dog you can build up the topline a variety of ways. One of my favorite is jumping. Not high jumps--only about 8 inches for a newf. Make sure they jump using the form a horse would jump. It builds up back muscles quickly.