You add dichlor to raise chlorine. It also raises CYA.

You add borax to raise pH.

You only do either, when you want to affect the particular pool factor. I usually try to size 'doses' to give them a reasonable amount to add at one time. But, that's assuming a 'test, dose, retest' approach, that corrects pool factors gradually.