CUBEMEMBER Function in Excel: A Label From the Data Model

CUBEMEMBER Function in Excel: A Label From the Data Model featured illustration

📎 This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 13 October 2026

LookupLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. CUBEMEMBER in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions
  9. Continue learning

CUBEMEMBER returns a member (like a year or product) from the Data Model, which CUBEVALUE can then reference.

Advertisement

Syntax

=CUBEMEMBER(connection, member_expression, )
Argument What it means
caption Text to show instead of the full name.

Examples

Example 1

=CUBEMEMBER("ThisWorkbookDataModel", "[Products].[Category].&[Audio]")

A row label that CUBEVALUE formulas point to.

CUBEMEMBER in practice

Where you will use it

  • Pick a member from a Power Pivot model
  • Custom report layouts
  • Slicer-driven formulas

Worked example

WorkbookFormulaResult
Has a Data Model=CUBEMEMBER("ThisWorkbookDataModel","[Region].[Region].[North]")(value from your Data Model)

Needs a Power Pivot Data Model, so this example is not calculated here: the result is whatever your model holds.

Mistakes people make

MistakeWhat to do instead
Wrong connection nameUse ThisWorkbookDataModel for Power Pivot
Typos in namesBuild them with PivotTable > OLAP Tools > Convert to Formulas

CUBEVALUE · CUBESET

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

⚡ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

📎 Practice files for this article

  • 📗
    Practice workbook: Lookup & reference17 tasks on realistic sales data — type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX · 35 KB

Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *