- Create source and target with same structure and drag them in to the mapping designer.
- Create an expression transformation and connect source ports to expression.
- Add two new ports one is variable port other is output port. write expression like below
O_Count=V_Count
- Create sorter transformation connect all ports from expression to sorter.
- Edit Sorter->select O_Count as key column->Make it descneding order.
- Create other expression transformation and connect all ports from expression to sorter except output port.
- Add again two new ports.
O_Count=V_Count
- Create filter transformation connect all ports from expression to filter
- Add condition to filter O_Count=1
- Connect filter to target table.
- The output will be like below