O'Reilly logo

Microsoft® Excel® 2010 Formulas & Functions Inside Out by Helmut Reinke Egbert Jeschke Sara Unverhau, Eckehard Pfeifer, Bodo Fienitz, and Jens Bock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required