Preparing Aggregated Data by Hierarchies
The second step of calculating a basic custom metric in CPE-UM.
-
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
|
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
-
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.
-
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.
-
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.
-
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,
-
Create a new row in the "Fields" section.
-
Select the dimension from the list of the fields.
-
Use the value "Group" in the column "Aggregation".
-
-
Save the function.
Overview of task: Calculating Custom Metrics with CPE-UM
Previous steps: Selecting the Measure Data
Next steps: Calculating a Custom Metric