Private detective movie from late 80’s or early 90’s
I’m desperately looking for a movie from my childhood.
There was this funny detective. He was wearing a trench coat, a felt hat and he had a beard.
Whole the movie he was after a criminal. In the end of the movie he was coming to a party. Met with the wife of the criminal and they started fighting. She had short black hair. If I’m not wrong that wife was the criminal himself, he had a gender change operation to hide.
If I remember the details correct it was a super unique subject, but couldn’t find the movie all these times.
Any help will be appreciated.