以下查询(在 Excel VBA 中使用)从多维数据集中获取度量值组和维度,但不获取度量值。我想将维度与他们的度量联系起来,而不仅仅是度量组。那可能吗?
SQLstr = "SELECT [DIMENSION_UNIQUE_NAME] AS [Dimension]" & _
" ,[MEASUREGROUP_NAME] AS [MeasureGroup]" & _
" FROM $system.MDSCHEMA_MEASUREGROUP_DIMENSIONS" & _
" WHERE [CUBE_NAME] ='" & CubeName & "'" & _
" AND NOT [DIMENSION_IS_FACT_DIMENSION]" & _
" ORDER BY [DIMENSION_UNIQUE_NAME]"