CUBERANKEDMEMBER()

Syntax. CUBERANKEDMEMBER(connection,set_expression,rank,caption)

Definition. This function returns the n-th member in a set.

Arguments

Background

Note

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

Error values and messages provide information about incorrect or missing entries:

Example. If you reference a cell in the formula

=CUBERANKEDMEMBER("offline",B9,1)

that returns the store set with

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

the result is NorthEast. This store has the most sales for all products and in all years. The nested formula

=CUBERANKEDMEMBER("offLine",CUBESET("offLine","([Stores].[Store].[All].[NorthEast],
   [Years].Children)","all sales",2;"[Measures].[Sales]"),3)

calculates the year with the least sales for this store (position 3): 2011.

See Also

All other cube functions, GETPIVOTDATA()