I've never installed ubuntu on a Switch.
I read that the power off button was removed from the UI somewhere in v20.
There should be a terminal available so maybe you could use that and type 'sudo power off' or 'sudo shutdown -h now'.
That should initiate a shutdown immediately and with my servers/pc's it also turns off the power at the end.