⌨ Syntaxe
CUBESET(connection,set_expression,[caption],[sort_order],[sort_by])
Arguments
connection
(requis)
— Chaîne de texte qui représente le nom de la connexion au cube.
set_expression
(requis)
— Chaîne de texte qui représente une expression de données qui produit un ensemble de membres ou de tuples. Cet argument peut également être une référence de cellule renvoyant à une plage Excel qui contient un ou plusieurs membres, tuples ou ensembles inclus dans l’ensemble.
caption
(facultatif)
— A text string that is displayed in the cell instead of the caption, if one is defined, from the cube.
sort_order
(facultatif)
— The type of sort, if any, to perform and can be one of the following:
sort_by
(facultatif)
— A text string of the value by which to sort. For 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. Or, 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.
▶ Exemples
=CUBESET("Sales","[Product].[All Products].Children","Products",1,"[Measures].[Sales Amount]")
=CUBESET("Finance","Order([Product].[Product].[Product Category].Members,[Measures].[Unit Sales],ASC)","Products")