You selected everything, then inverted the selection. And the inverse of everything is nothing.
First, target the layer that you want to work on.
Then make a selection.
Then you can invert that selection.
If you wanted to invert the pixel values - that's under the adjustment menu.