CUBESETCOUNT()

Syntax. CUBESETCOUNT(set)

Definition. This function returns the number of members in a set.

Argument

  • set (required) A set defined with the CUBESET() function or a reference to the cell containing members of the cube

Background. The result of this function is an integer. If the argument causes an error, this error is also returned as the result.

Note

In the cell containing the function, the message #GETTING_DATA temporarily appears while the data is being queried.

Example. In the CUBESETCOUNT() function, if you reference a cell that returns the sorted set of the stores like

=CUBESET("offline","[Stores].[Store].Children", "all store sales",2,"[Measures].
[Sale]")

the result will be 4. You get the same result if you pass this formula as an ...

Get Microsoft® Excel® 2010 Formulas & Functions Inside Out now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.