Cube - CUBESET Function

The CUBESET function defines a calculated set of members or tuples by sending a set expression to the cube on the server, which creates the set, and then returns that set to Microsoft Excel.
CUBESET (connection, set_expression, [caption], [sort_order], [sort_by])

A text string of a set expression that results in a set of members or tuples.
OR
A cell reference to an Excel range that contains one or more members, tuples, or sets included in the set.
A text string of the value by which to sort.
Example
To get the city with the highest sales, set_expression would be a set of cities, and sort_by would be the sales measure.
To get the city with the highest population, set_expression would be a set of cities, and sort_by would be the population measure.
If sort_order requires sort_by, and sort_by is omitted, CUBESET returns the #VALUE! Error message.
The type of sort to perform, if sort_order Argument is specified −
The default value is 0. An alpha sort for a set of tuples sorts on the last element in each tuple.
When the CUBESET function evaluates, it temporarily displays a "#GETTING_DATA..." message in the cell before all of the data is retrieved.
When the CUBESET function evaluates, it temporarily displays a "#GETTING_DATA..." message in the cell before all of the data is retrieved.
If the connection name is not a valid workbook connection stored in the workbook, CUBESET returns a #NAME? Error value. If the Online Analytical Processing (OLAP) server is not running, not available, or returns an error message, CUBESET returns a #NAME? Error value.
If the connection name is not a valid workbook connection stored in the workbook, CUBESET returns a #NAME? Error value. If the Online Analytical Processing (OLAP) server is not running, not available, or returns an error message, CUBESET returns a #NAME? Error value.
If the set_expression syntax is incorrect or the set contains at least one member with a different dimension than the other members, CUBESET returns a #N/A error value.
If the set_expression syntax is incorrect or the set contains at least one member with a different dimension than the other members, CUBESET returns a #N/A error value.
If set_expression is longer than 255 characters, which is the limit for an argument to a function, CUBESET returns a #VALUE! Error value. To use text strings longer than 255 characters, enter the text string in a cell (for which the limit is 32,767 characters), and then use a cell reference as the argument.
If set_expression is longer than 255 characters, which is the limit for an argument to a function, CUBESET returns a #VALUE! Error value. To use text strings longer than 255 characters, enter the text string in a cell (for which the limit is 32,767 characters), and then use a cell reference as the argument.
CUBESET may return a #N/A error value if you reference a session-based object, such as a calculated member or named set, in a PivotTable when sharing a connection and that PivotTable is deleted or you convert the PivotTable to formulas. (On the Options tab, in the Tools group, click OLAP Tools, and then click Convert to Formulas.)
CUBESET may return a #N/A error value if you reference a session-based object, such as a calculated member or named set, in a PivotTable when sharing a connection and that PivotTable is deleted or you convert the PivotTable to formulas. (On the Options tab, in the Tools group, click OLAP Tools, and then click Convert to Formulas.)
Excel 2007, Excel 2010, Excel 2013, Excel 2016

    296 Lectures 
     146 hours 

 Arun Motoori

    56 Lectures 
     5.5 hours 

 Pavan Lalwani

    120 Lectures 
     6.5 hours 

 Inf Sid

    134 Lectures 
     8.5 hours 

 Yoda Learning

    46 Lectures 
     7.5 hours 

 William Fiset

    25 Lectures 
     1.5 hours 

 Sasha Miller
 Print
 Add Notes
 Bookmark this page