CUBEVALUE function

Category: Cube
Introduced: Excel 365

Summary

Returns an aggregated value from a cube.

Syntax

CUBEVALUE(connection, [member_expression1], [member_expression2], …) The CUBEVALUE function syntax has the following arguments:
• Connection Required. A text string of the name of the connection to the cube.
• Member_expression Optional. A text string of a multidimensional expression (MDX) that evaluates to a member or tuple within the cube. Alternatively, member_expression can be a set defined with the CUBESET function. Use member_expression as a slicer to define the portion of the cube for which the aggregated value is returned. If no measure is specified in member_expression, the default measure for that cube is used.

Example

=CUBEVALUE("Sales","[Measures].[Profit]","[Time].[2004]","[All Product].[Beverages]")
=CUBEVALUE($A$1,"[Measures].[Profit]",D$12,$A23)
=CUBEVALUE("Sales",$B$7,D$12,$A23)

Microsoft Support Page

https://support.microsoft.com/en-us/office/cubevalue-function-8733da24-26d1-4e34-9b3a-84a8f00dcbe0

Back to Functions