InterSystems MDX Reference
This section describes how to create and use hierarchy expressions in InterSystems MDX.
In InterSystems MDX, a hierarchy expression has one of the following forms:
A hierarchy literal, which is a direct reference to the hierarchy as follows:
A reference to a dimension:
The system interprets this as a reference to the first visible hierarchy of that dimension.
An expression that uses an InterSystems MDX extension to refer to a hierarchy in another cube, via the following syntax:
A bare hierarchy expression returns all records; this expression is equivalent to an All member. (Note that you can use a bare hierarchy expression even if the dimension does not formally define an All level.) For example:
SELECT MEASURES.[%count] ON 0, colord.h1 ON 1 FROM patients
Also, you can use a hierarchy expression as an argument to any of the following functions:
Content Date/Time: 2019-02-21 00:53:44