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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.