Skip to main content

Introduction

Members have standard properties, such as names or captions (which are defined in the MDX standard). They are also allowed to have non-standard properties. These non-standard properties are called custom member properties. For example, in a hierarchy of the employees of a company, the employees (who are the members of the hierarchy) could have their phone numbers as properties. Custom member properties can be displayed on a pivot table delivered by Excel or Atoti UI. They can also be used to filter the result.

Defining a Custom Member Property

A custom member property is an extended plugin implementing the ICustomProperty interface. Here is an example of a custom member property that retrieves the date of the earliest trade for a given desk (additional snippet on the sandbox project):
That custom member property can then be set for the desk in the cube definition:

Accessing a Custom Member Property via MDX

There are two ways to access custom member properties via MDX:
  • Using the PROPERTIES keyword:
  • Using the Properties function:
You can also filter a query based on the custom member property:

Viewing a Member Property in Excel

When connecting to Atoti Server from Excel, you can view member properties by hovering over the members. Alternatively, you can add a column to your table and display the member properties as a column. As of Excel Version 2101, a simple right-click on the pivot-table where a member displays will open a pop-up menu that contains the “Show Properties in Report” option. If the level corresponding to the member you right-clicked has defined custom properties, those properties will display and you can choose which member property to add to your report as a column.

Viewing a Member Property in Atoti UI

By default, member properties do not display in the Atoti UI PivotTable. If you add a member property via the PROPERTIES keyword to the MDX query, that member property will display when you hover over a cell that contains a member with that property: