简体   繁体   中英

MDX query on a single dimension

Can someone please remind me how I do this?

I want an MDX query (MS SSAS) which will query a dimension. Not interested in cubes or measures.

So far as I remember the syntax involves a $ sign, something like [$MyDimension].

I know I can do the below, but I want to query the dimension without touching a cube.

select [DimensionName].Children on 0 from [CubeName]

I guess they're called "dimension cube":

select [dim].members on 0 from [$dim]

or

select [Measures].defaultMember on 0, [dim].members on 1 from [$dim]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM