What's the condition to hide?
You want a dimension to hide or a measure?
I'm not sure if what I'm thinking will work or no, but will update you if it works.
Edit: I tried but doesn't hide the column but instead hide the chart itself. If it is very important to hide then why not use Section Access based on NTNAME to OMIT the fields?