Overview
This section explains how to customize the cube’s measures configuration by implementing theIMeasureBuilder interface and importing the Spring Bean into the project.
IMeasureBuilder interface
This interface contains a single method,copperMeasures(), which, when implemented, will contain all new copper measures that will be added to the cube’s configuration.
CustomMeasureBuilder class
To add new measures to the cube configuration, define a Spring Configuration class, which implements theIMeasureBuilder interface. Within the copperMeasures(ICopperContext context) method, add the new copper measures.
See example below:
copperMeasures() are added to the cube’s configuration along with the default measures.