Cube
Excel 2007
◉ 22 views
=CUBEMEMBERPROPERTY()
The CUBEMEMBERPROPERTY function returns the value of a member property from a cube. Use it to validate that a member name exists within the cube, and to return the specified property for this member.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016Excel for iPadExcel Web AppExcel for iPhoneExcel for Android tabletsExcel for Android phones
=CUBEMEMBERPROPERTY(connection, member_expression, property)
Hover argument names in the table for details.
Output typeMixed
Popularity8 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =CUBEMEMBERPROPERTY() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
connection |
Text | Required | A text string of the name of the connection to the cube. |
member_expression |
Text | Required | A text string of a multidimensional expression (MDX) of a member within the cube. |
property |
Text | Required | A text string of the name of the property returned or a reference to a cell that contains the name of the property. |
▣ Examples
Example 1
=CUBEMEMBERPROPERTY("Sales","[Time].[Fiscal].[2014]",$A$3)
Example 2
=CUBEMEMBERPROPERTY("Sales","[Store].[MyFavoriteStore]","[Store].[Store Name].[Store Sqft]")
§ Remarks
- 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 doesn't 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, and that PivotTable is deleted or you convert the PivotTable to formulas. (On the Options tab, in the Tools group, click OLAP Tools, and then click Convert to Formulas.)
- CUBEMEMBERPROPERTY will not work against Excel Data Models that are edited in Power Pivot, since they are not multi-dimensional cubes.
✦ Tips
- When the CUBEMEMBERPROPERTY function evaluates, it temporarily displays a "#GETTING_DATA…" message in the cell before all of the data is retrieved.
- CUBEMEMBERPROPERTY will not work against Excel Data Models that are edited in Power Pivot, since they are not multi-dimensional cubes.
⚠ Common Errors
#NAME?
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.
Fix: Check the connection name in the Connections section
#N/A
If the member_expression syntax is incorrect or if the member specified by member_expression doesn't 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, and that PivotTable is deleted or you convert the PivotTable to formulas. (On the Options tab, in the Tools group, click OLAP Tools, and then click Convert to Formulas.)
Fix: نحو MDX و وجود عضو را بررسی کنید و از ارجاع به اشیای مبتنی بر جلسه در اتصال مشترک خودداری کنید.
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!