By default I don't think so.
If you can find any extension, that's good.
However you can use a ON/OFF switch button on side to show or hide the columns, just like a variable instead you don't have to enter variable but store your Dimension or Measure in Master Item.
Check the below extension
Ad-Hoc and follow the instructions and it also has example app.