Filter DataTable data by Column

Hi,
Can anyone please help me with this scenario. I have tried Filtering ID1/ID2 Column by using Filter DataTable but entire row is getting deleted. I have attached image of Input and what Output I need exactly. Please help.

@PrathimaR Can you tell us more about the Filter condition that you have used ? Also if you can provide the sample Input data’s we can test it ourselves.