List dimension members with MDX query

Žygimantas picture Žygimantas · Jun 7, 2011 · Viewed 28.5k times · Source

Is there a way to list dimension members without fetching default Measure for each member?

Answer

Tullo_x86 picture Tullo_x86 · Jun 8, 2011

You could SELECT nothing on the opposite axis:

SELECT
  { } on 0,
  { DESCENDANTS([Dimension].[Hierarchy]) } on 1
FROM [Cube]

SELECTing an empty set prevents SSAS from adding the default measure on the opposite axis.