AttributeDimension (Property)

Applies To:

Dimension object, OLAPLevelOrHierarchyNew collection

Description:

A read-only boolean property which can be used to test whether this is an attribute dimension or not. An attribute dimension level can be used with any base dimension to enhance the meaning of dimensional data. It displays in the Catalog Pane of the OLAP tree following the regular Dimension name. The Attribute Dimension has text (attribute) following the name. Attribute Calculations also display as separate dimensions and the calculation functions are used in combination with any attribute dimension level or member.

Action:

Read only, Boolean

Example 1:

This example shows how to set the Attribute Dimension property to true:

ActiveDocument.Sections["OLAPQuery"].Catalog.Dimensions["Market"].AttributeDimension = true

Example 2:

This example shows how to test whether a dimension is an attribute dimension or not:

var products = Sections["Query"].Catalog.Dimensions["Product"];
if (products.AttributeDimension == true)
    // Product is an attribute dimension