CUBEMEMBERPROPERTY Function

Excel Functions › Cube

Excel 2007+ Data Model / OLAP

The Excel CUBEMEMBERPROPERTY function returns a property of a cube member — a customer’s city, a product’s launch date — from an OLAP cube. Note: it needs true OLAP member properties, which Power Pivot Data Models mostly don’t expose — this one shines against Analysis Services cubes.


Quick answer: the City property of a customer member:
=CUBEMEMBERPROPERTY("SalesCube", "[Customers].[Name].[Acme Corp]", "City")

Syntax

=CUBEMEMBERPROPERTY(connection, member_expression, property)
ArgumentDescription
connectionRequiredOLAP connection name as text.
member_expressionRequiredMDX string identifying the member.
propertyRequiredProperty name as text, e.g. "City", or an MDX property expression.

What you need first: cube functions only work against a Power Pivot Data Model (or an external OLAP cube). Add your table to the model — check “Add this data to the Data Model” when inserting a PivotTable, or use the Power Pivot tab — then reference it with the connection name "ThisWorkbookDataModel" and MDX-style member strings like "[Measures].[Total Sales]" or "[Products].[Category].[Displays]".

How to use it

Report row enriching a CUBEMEMBER cell in B5:

=CUBEMEMBERPROPERTY("SalesCube", $B5, "Region")

Power Pivot reality check: workbook Data Models don’t define member properties the way Analysis Services cubes do. Against "ThisWorkbookDataModel" you’ll usually get #N/A — pull the attribute as its own column/measure instead, or use a real OLAP cube.

Try it: interactive demo

Live demo

Pick a member and a property — see the formula a corporate OLAP cube would answer.

Result:

Errors & common pitfalls

#NAME? — bad connection name. The first argument must exactly match a workbook connection; for the built-in Data Model it is "ThisWorkbookDataModel", quotes included.

#N/A — invalid member expression. Table, column, or item names in the MDX string don’t match the model. Check spelling and bracket every level: [Table].[Column].[Item].

“#GETTING_DATA” flashes in cells. Normal — Excel retrieves cube results asynchronously. It resolves when the query finishes.

Performance: hundreds of separate CUBEVALUE calls query the model one by one. Pull shared members into CUBEMEMBER cells once and reference those cells in your CUBEVALUEs.

Practice workbook

📊
Download the free CUBEMEMBERPROPERTY practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Why do I get #N/A against ThisWorkbookDataModel?
Power Pivot models generally don't expose member properties. This function is built for Analysis Services OLAP cubes. With Power Pivot, add the attribute as a column and read it with CUBEVALUE/CUBEMEMBER patterns instead.
What properties exist on a member?
Whatever the cube designer defined — typical examples: City, Manager, Color, LaunchDate. Ask your BI team or browse the cube structure in a pivot.
CUBEMEMBERPROPERTY vs CUBEMEMBER?
CUBEMEMBER returns the member itself (for building reports); CUBEMEMBERPROPERTY returns one attribute OF a member (for enriching them).
Does it work in Excel for the web?
Cube functions calculate in Excel for the web against workbook Data Models, but external OLAP connections generally need desktop Excel.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: CUBEVALUE · CUBEMEMBER · CUBESET · GETPIVOTDATA · GROUPBY