$ 0 0 Hi Viacheslav, I used the distinct at 'select' and group by on position, Empno, used max(Date) for Date column. Please check source and target data.