Preparing Aggregated Data by Hierarchies

The second step of calculating a basic custom metric in CPE-UM.

This step refers to the folder "2. Hierarchy Aggregation". The purpose of this second step is to aggregate the data for each node of the Business Location, Legal Entity and Reporting Line hierarchies. When creating the basic custom metric, the calculation method No aggregation is used, which means that the result of the calculation needs to be provided for each node of Business Location, Legal Entity, and Reporting Line hierarchies, and for each relevant period. The relevant periods are:
  • For monthly data, results must be provided by month, quarter and year

  • For quarterly data, results must be provided by quarter and year

  • For yearly data, results must be provided by year

In the previous step, all the measure data required for the calculation was selected. In this step, the information below is needed:

Calculation Rule Components

Description

Filtered dimensions

The data of each measure must be distinguished by gender (female and male), which is the filtered dimension during the calculation.

Procedure

This step is divided into the three functions 2a, 2b , and 2c. Copy these functions and connect them to the model collection function 1a which was created in the previous topic.
  1. Copy the model calculation function 2a, rename it, and update its description. Then edit the details, replace the input function peopleData01 by the function 1a created in the first step and Save the function.

  2. Copy the model view function 2b, rename it, and update its description. Then edit the details, replace the input function peopleData02 by the function 2a created above. Save the function.

  3. Copy the model view function 2c, rename it, and update its description. Then edit the details, replace the input function peopleData03 by the function 2b created above.

    This model view function aggregates the data.

  4. In the current example, the calculation rule requires filtering the measure data on the dimension "Gender". Therefore, the dimension "Gender" needs to be added to the aggregated dimensions.

    Remove the "Gender" dimension from the aggregation and add the filtered dimensions required by your calculation rules. To add an aggregated dimension,

    1. Create a new row in the "Fields" section.

    2. Select the dimension from the list of the fields.

    3. Use the value "Group" in the column "Aggregation".

  5. Save the function.

Overview of task: Calculating Custom Metrics with CPE-UM

Previous steps: Selecting the Measure Data

Next steps: Calculating a Custom Metric