CUBEKPIMEMBER()

Syntax. CUBEKPIMEMBER(connection,kpi_name,kpi_property,caption)

Definition. This function returns a Key Performance Indicator (KPI) property and displays the KPI name in the cell.

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:

You can combine CUBEKPIMEMBER() with CUBEVALUE(). Specify CUBEKPIMEMBER() as the second argument or reference for CUBEVALUE().

Example. In this example, a KPI named average is saved in the cube. This cube calculates the average of the sales and the total number of sales as integers. Both values are also saved as measures in the cube but cannot be used to calculate fields in the PivotTable. The target value (goal) is $1,500. Figure 14-3 shows the example for cookies.

The KPI average.

Figure 14-3. The KPI average.

The formula

=CUBEKPIMEMBER("offline","average",1)

displays the word average. The formula

=CUBEVALUE("offline",CUBEKPIMEMBER("offline","average",1))

returns 1453 (the rounded average of all sales). In the second formula, you can enter a reference to the cell containing the first formula as the second argument. To get the target value of the average, use the formula

=CUBEVALUE("offline",CUBEKPIMEMBER("offline","average",2))

The value of 2 in the last argument is important, because it indicates, in this case, the target value.

You can use the cell containing the formula to create cell captions. The real content of the cell is more informative, as shown by using the CUBEVALUE() function.

See Also

All other cube functions, GETPIVOTDATA()