If the end of a wall does not end at a joint, you can add a dimension constraint at the end of the wall as follows:
Setting Layers Visible Editing Constraints Adding Constraints