MDX Documentation
SubQueries (standard MDX)

MDX subQueries (aka. subSelect).

Description

SubQueries (or subSelects) are one of the latest addition to the MDX language. It is a powerful feature that allows for querying an MDX query instead of a cube.

As opposed to the WHERE clause, subQueries also change the hierarchies structure. Hierarchies defined in a subQuery are filtered (accepting all descendants and ascendants members defined in the subQuery).

See example 'SubQueries in Axis - Branch' for more information.


SELECT
[Measures].members ON 0
FROM [NON VISUAL]
( SELECT [Geography].[Switzerland] ON 0 FROM [SALES] )


The 'NON VISUAL' flags control whether aggregation is using all members (NON VISUAL) or only the filtered members.

See Also

WhereClause

Examples

Special Examples (errors, null, ...)

XMLA Properties

Find here the value of the XMLA properties when not specified otherwise.

icCube OLAP version: 2.5.1 13-May-2012 02:21:10 GMT