Select Your Region
Americas
Europe
Middle East & Africa
Asia Pacific
![]() | ![]() | ![]() | ![]() |
If you are applying member-level security to a dimension that has more than one hierarchy, you can use the <!--CONDITION--> operator to join the two conditions so that one or the other will apply depending on which hierarchy is used in the OLAP query.
Here is sample MDX code for a cube that limits the Geography dimension and its two hierarchies, Global and Country_Detail, to only seeing data where Country=Russia:
{[Geography].[Global].[All Global],
[Geography].[Global].[All Global].[Asia],
[Geography].[Global].[All Global].[Asia].[Russia],
descendants([Geography].[Global].[All Global].[Asia].[Russia])}
<!--CONDITION-->
{[Geography].[Country_Detail].[All Country_Detail],
[Geography].[Country_Detail].[All Country_Detail].[Russia],
descendants([Geography].[Country_Detail].[All Country_Detail].[Russia])}
|
Therefore, you should be able to include both sets of MDX that work successfully by themselves into the MDX editor and connect them with the <!--CONDITION--> operator.
The <!--CONDITION--> operator is specific to SAS. It is used when defining member-level security to an OLAP cube when you have multiple hierarchies for a dimension.
For more information about cubes, see the SAS OLAP Server and SAS OLAP Cube Studio documentation pages.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.