Changing the Measure List of a Query Object

The Measures property of the Query object usually obtains its initial setting from the initCubeQuery method. In the case of a Query object that is cloned, the setMeasures method can be used to reset the query.

If you call the addCubeMeasures method, the removeCubeMeasures method, or the applySelection method, the dimensionality of the query is updated as appropriate depending on the measures or measure dimension that remain in the query.