List only Duplicates in Piece Inventory

I would like to check for duplicate units in a Piece Inventory report and have it list only the multiple instances. I would be checking by BasicName although PieceName would work too.

I am not experienced enough in expressions to get this one, probably Beanshell would be needed.