POSITIONOFFSETY (or X) can take either a number or a column. For your case, you will need to use a…