The following query (used in Excel VBA) gets the measuregroups and the dimensions from a cube, but not the measures. I would like to tie the dimensions to their measures and not just the measuregroup. Is that possible?
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]"