- Advanced Excel Functions Tutorial
- Advanced Excel Functions - Home
- Compatibility Functions
- Advanced Excel Functions - Cube
- Database Functions
- Date & Time Functions
- Engineering Functions
- Financial Functions
- Information Functions
- Advanced Excel Functions - Logical
- Lookup & Reference Functions
- Math & Trignometric Functions
- Statistical Functions
- Useful Resources
- Quick Guide
- Useful Resources
- Discussion
Cube - CUBEMEMBERPROPERTY Function
Description
The CUBEMEMBERPROPERTY function returns the value of a member property from the cube. Use this Function to validate that a member name exists within the cube and to return the specified property for this member.
Syntax
CUBEMEMBERPROPERTY (connection, member_expression, property)
Arguments
Argument | Description | Required/ Optional |
---|---|---|
connection | Name of the connection to the cube. - A text string | Required |
member_expression | A multidimensional expression (MDX) of a member within the cube. - A text string | Required |
property | The name of the property returned or a reference to a cell that contains the name of the property. - A text string | Required |
Notes
When the CUBEMEMBERPROPERTY function evaluates, it temporarily displays a "#GETTING_DATA…" message in the cell before all of the data is retrieved.
If the connection name is not a valid workbook connection stored in the workbook, CUBEMEMBERPROPERTY returns a #NAME? Error value. If the Online Analytical Processing (OLAP) server is not running, not available, or returns an error message, CUBEMEMBERPROPERTY returns a #NAME? Error value.
If the member_expression syntax is incorrect or if the member specified by member_expression does not exist in the cube, CUBEMEMBERPROPERTY returns a #N/A error value.
CUBEMEMBERPROPERTY may return a #N/A error value if you reference a session-based object, such as a calculated member or named set, in a PivotTable when sharing a connection. The PivotTable is deleted or you can convert the PivotTable to formulas. (On the Options tab, in the Tools group, click OLAP Tools, and then click Convert to Formulas.)
Applicability
Excel 2007, Excel 2010, Excel 2013, Excel 2016
Example
=CUBEMEMBERPROPERTY ("Sales","[Time].[Fiscal].[2004]",$A$3) =CUBEMEMBERPROPERTY("Sales","[Store].[MyFavoriteStore]","[Store].[Store Name].[Store Sqft]")