It's a close synonym of "compensate for" but you need to make sure that you offset x against something of the same nature as x e.g. losses against gains/profits.
fraze.it is also good for examples of real sentences in context.
Rafael's second, technical meaning of the term is not widely known, including by me (till now).