Doubts about roles in mondrian ??

Hi.I have created a cube with several measures and dimensions.I have created a role, to filter by one dimension. It does well, but only when in the rows or columns is this dimension, if it is removed from the rows or columns, all the information in the cube comes out and does not filter. What am I doing wrong?The role has been defined statically in the xml file.