La función CUBESET

Contents

<span class ="tr_" id="tr_2" data-source="" data-orig="La función CUBESET">La función CUBESET</span> <Article <Blog | SumProduct are Excel training experts: financial modeling, strategic data modeling, model audit, planning and strategy, training courses, tips and online knowledge base.

keep in mind javascript is required for full website functionality.

Welcome back to our regular blog of Excel functions from A to Z. Today we look at the CUBESET function.

La función CUBESET

When the workbook is connected to a Microsoft SQL Server 2005 Analysis Services or a later data source, esta función define un conjunto calculado de miembros o tuplas enviando una expresión de conjunto al cubo en el servidor, que crea el conjunto y luego lo devuelve a Microsoft Excel.

function_102_-_cubeset-8095445

The CUBESET The function uses the following syntax to operate:

CUBESET (Connection, set_expression, , [sort_order], [sort_by])

The CUBESET The function has the following arguments:

  • Connection: this is mandatory and represents a text string of the name of the connection to the cube
  • set_expression: this is also necessary. Esta es una cadena de texto de una expresión de conjunto que da como resultado un conjunto de miembros o tuplas.
  • set_expression también puede ser una referencia de celda a un rango de Excel que contiene uno o más miembros, tuplas o conjuntos incluidos en el conjunto
  • subtitle: this is optional. Esta es una cadena de texto que se muestra en la celda en lugar del título, si hay uno definido, del cubo
  • Orden de clasificación: esto también es opcional. Este es el tipo de clasificación, if appropriate, a realizar y puede ser una de las siguientes:

function_102_-_cubeset_part_2-4005207

  • Ordenar por: esto es opcional y representa una cadena de texto del valor por el cual ordenar. For instance, para conseguir la ciudad con mayores ventas, set_expression sería un conjunto de ciudades y Ordenar por sería la medida de ventas. Alternatively, para obtener la ciudad con mayor población, set_expression sería un conjunto de ciudades, Y Ordenar por sería la medida de la población. And Orden de clasificación requiere Ordenar por Y Ordenar por is omitted, CUBESET return the #VALUE! mensaje de error.

It should also be noted that:

  • the CUBESET The function is supported only when the workbook is connected to a Microsoft SQL Server 2005 Analysis Services or a later data source.
  • when the CUBESET The function evaluates, temporarily display a message “# GETTING_DATA …” in cell before all data is retrieved.
  • si el nombre de la conexión no es una conexión de libro válida almacenada en el libro de trabajo, CUBESET returns a #NAME? error value. If the online analytical processing server (OLAP) it's not working, is not available or returns an error message, CUBESET returns a #NAME? error value
  • If he set_expression la sintaxis es incorrecta o el conjunto contiene al menos un miembro con una dimensión diferente a los otros miembros, CUBESET returns a #N / A error value
  • And set_expression tiene más de 255 characters, que es el límite de un argumento para una función, CUBESET returns a #VALUE! error value. Para usar cadenas de texto de más de 255 characters, ingrese la cadena de texto en una celda (para la cual el límite es 32,767 characters) y luego use una referencia de celda como argumento
  • CUBESET can return a #N / A error value if you reference a session-based object, as a calculated member or named set, in a pivot table when a connection is shared, and that pivot table is dropped or converts pivot table to formulas (in the 'Options' tab’ of the tape , in the group 'Tools', click on 'OLAP Tools’ and then click on 'Convert to formulas').

Please, see my examples below:

= CUBESET (“Finance”, “Pedido ([Product].[Product].[Product Category].Miembros,[Measures].[Unit Sales], ASC) “,” Products “)

= CUBESET (“Sales”, “[Product].[All Products].Niños “,” Products “, 1,”[Measures].[Sales Amount]”)

Soon we will continue with our functions from A to Z of Excel. Keep checking: there is a new blog post every business day.

Subscribe to our Newsletter

We will not send you SPAM mail. We hate it as much as you.