Excel - CUBEKPIMEMBER Function



CUBEKPIMEMBER Function

This powerful cube function ensures you retrieve the KPI information from a multidimensional cube in your data model and permits you to make crucial business decisions. The CUBEKPIMEMBER function retrieves a Key Performance Indicator (KPI) property and displays the KPI name in the cell. With the aid of this function, you may determine the organization's objective, monitor real-time projects, improve employee engagement, and so on.

Compatibility

This advanced excel function is compatible with the following versions of MS-Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2019 for Mac
  • Excel 2016
  • Excel for iPad
  • Excel Web App
  • Excel for iPhone
  • Excel for Android tablets
  • Excel for Android phones

Syntax

The syntax of CUBEKPIMEMBER function is as follows −

CUBEKPIMEMBER (connection, kpi_name, kpi_property, [caption])

Arguments

You can use the following arguments with the CUBEKPIMEMBER function −

Argument Description Required / Optional
connection A text string representing a connection name of the specific cube. Required
kpi_name A text that indicates a KPI name. Required
kpi_property The KPI property will be obtained and may be one of the Enumerated Constants shown in the table below. Required
Caption An alternative text will be showcased in the targeted cell despite kpi_name and kpi_property Optional

The KPI component returned −

Integer Enumerated constant Description
1 KPIValue The actual value
2 KPIGoal A target value
3 KPIStatus It specifies a KPI state at a specific moment in time
4 KPITrend A value measured at certain interval of time
5 KPIWeight Relative weight assigned to the KPI
6 KPICurrentTimeMember A current time for the KPI member

If you specify KPIValue for kpi_property, only kpi_name is displayed in the cell.

Points to Remember

A KPI is a quantifiable measurement used to track employee performance, such as monthly employee sales achieving the target.

The CUBEKPIMEMBER function is implemented only when the Workbook is added to a specific data model or connected to the Microsoft SQL Server 2005 Analysis Services.

  • A "#GETTING_DATA" message would be showcased in the designated cell before retrieving the result.
  • You can utilize the CUBEKPIMEMBER function as a member expression inside the CUBEVALUE function.
  • If the connection name is not a valid workbook connection stored in the workbook, CUBEKPIMEMBER returns a #NAME Error value. If the Online Analytical Processing (OLAP) server is not running, is unavailable, or returns an error message, this function will retrieve a #NAME error.
  • The CUBEKPIMEMBER function retrieves a #N/A error value if you specify the invalid kpi_name or kpi_property as an argument.
  • If you reference a session-based object in a PivotTable while sharing a connection and then delete the PivotTable or convert it to formulas, CUBEBIMEMBER can receive a #N/A error value.

Examples of CUBEKPIMEMBER Function

Practice the following examples to learn the use of the CUBEKPIMEMBER function in Excel.

Example 1

Step 1 − Consider the sample dataset, which consists of three columns named Region, Product Name, and Sales Production and its related Pivot table in the given range F1:G11.

Excel CUBEKPIMEMBER Function 1

Step 2 − Furthermore, you may select the PivotTable Analyze tab, expand the OLAP Tools tile, and select the Convert to Formulas option from the drop-down list. After selecting this option, all the field values are transformed into the formulas.

Excel CUBEKPIMEMBER Function 2

Step 3 − To sum up sales production, navigate to the Data tab and click on the Go to the Power Pivot Window option.

Excel CUBEKPIMEMBER Function 3

Step 4 − Then, another dialog box titled Power Pivot for Excel will appear. In this box, you can expand the Calculations tile and select the AutoSum option to enable the summation of all sales values.

Excel CUBEKPIMEMBER Function 4

Now, you have to create a KPI. To achieve this, you can select the Create KPI option so that we can employ the created KPI in the CUBEKPIMEMEBER function.

Excel CUBEKPIMEMBER Function 5

Now, you can select the Absolute Value and hit the OK button in the Key Performance Indicator(KPI) window.

Excel CUBEKPIMEMBER Function 6

Step 5 − After that, you may type the formula =CUBEKPIMEMBER("ThisWorkbookDataModel","Sum of Sales Production 3",1) in the F14 cell and press the Enter tab.

Excel CUBEKPIMEMBER Function 7

Therefore, the Sum of Sales Production 3 is returned by the CUBEKPIMEMBER function.

Excel CUBEKPIMEMBER Function 8

To get the value of the KPI property, you may use the CUBEVALUE function in a desired cell. You may write the expression =CUBEVALUE("ThisWorkbookDataModel," F14) in the F16 cell and hit the Enter tab.

Excel CUBEKPIMEMBER Function 9

Therefore, the result is 418700, which is returned by the CUBEVALUE function.

Excel CUBEKPIMEMBER Function 10

Example 2

The CUBEKPIMEMBER function retrieves a #N/A error value if you specify the invalid kpi_name or kpi_property as an argument.

Solution

Lets say you entered the formula =CUBEKPIMEMBER("ThisWorkbookDataModel","Sum of Sales Production 3",8). In this formula, the KPI_property value is 8, which is invalid.

Excel CUBEKPIMEMBER Function 11

Therefore, the CUBEKPIMEMBER function will return a #N/A error.

Excel CUBEKPIMEMBER Function 12
Advertisements