ExcelFlux

CUBEMEMBER function

a member or tuple in a cube hierarchy. Use to validate that the member or tuple exists in the cube.

Cube · Guided Excel example

Where can you use it?

Data model and business intelligence teams. When checking measures, members and sets in a cube report, adapt the model and connection names to your workbook.

Scenario in the workbook

Retrieve a member caption. Replace column A with the real cube connection name. Match the sample MDX identifiers to your data model.

A worked example from the workbook

RowABC
6ConnectionMember or setSelection
7SalesCube[Measures].[Sales]Regions
8SalesCube[Measures].[Sales]Regions
9SalesCube[Measures].[Sales]Regions
Record 1
=CUBEMEMBER(A7,B7)

Illustrative outputDepends on model

See the inputs and instructions for all 3 examples

Worked examples

Retrieve a member caption. Replace column A with the real cube connection name. Match the sample MDX identifiers to your data model.

Column F provides expressions as text. Satisfy the stated requirements, then paste into an empty Excel cell and compare with column G. The result was not verified in desktop Excel here.

Row A B C
6 Connection Member or set Selection
7 SalesCube [Measures].[Sales] Regions
8 SalesCube [Measures].[Sales] Regions
9 SalesCube [Measures].[Sales] Regions
Trial Expression Sample output
Record 1 =CUBEMEMBER(A7,B7) Depends on model
Record 2 =CUBEMEMBER(A8,B8) Depends on model
Record 3 =CUBEMEMBER(A9,B9) Depends on model
Microsoft Excel reference