ExcelFlux

CUBESET function

Defines a calculated set of members or tuples by sending a set expression to the cube on the server, which creates the set, and then returns that set to Microsoft Office Excel.

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

Create a named set from an MDX expression. 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{[Region].[North],[Region].[South],[Region].[East]}Regions
8SalesCube{[Region].[North],[Region].[South],[Region].[East]}Regions
9SalesCube{[Region].[North],[Region].[South],[Region].[East]}Regions
Record 1
=CUBESET(A7,B7,C7)

Illustrative outputDepends on model

See the inputs and instructions for all 3 examples

Worked examples

Create a named set from an MDX expression. 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 {[Region].[North],[Region].[South],[Region].[East]} Regions
8 SalesCube {[Region].[North],[Region].[South],[Region].[East]} Regions
9 SalesCube {[Region].[North],[Region].[South],[Region].[East]} Regions
Trial Expression Sample output
Record 1 =CUBESET(A7,B7,C7) Depends on model
Record 2 =CUBESET(A8,B8,C8) Depends on model
Record 3 =CUBESET(A9,B9,C9) Depends on model
Microsoft Excel reference