Andy Bernard did not sing at the end of any “Play” episode of The Office.
He does perform “My Heart Will Go On” (Celine Dion) in several scenes across the series.
You may be recalling a different episode or character.