We cannot hide the column totally in Qlik Sense.
the only solution I can think of is using Section Access. Even that will not hide the column but instead will show - as values for restricted field.
But that's not a good idea to use SA just to hide a field when actually not implementing security.
let hideVar=1; in script
and do a preceding load
if($(hideVar)<>1,CostCenter) as NewCostCenter;
The result will vary and the totals will not match if you hide it this way. I'm not sure why you wanna hide the column, why don't just delete that dimension, use Year as a Filter