Creating aggregate measures
These can be thought of as cubes from prior releases of Operations and form that basis to which we analyze our data. They contain the aggregate data that the dimensions splice or pivot on.
Getting ready
You may find that the drop-downs used in properties may not work in this recipe; to resolve this, simply build the project before you start.
How to do it...
First, we will need to create a view that flattens the service data into one view. To do this, follow these steps:
- Create a new view called
ConWHSVehicleServiceExpanded
. - Add the
ConWHSVehicleSErviceTable
table as the root data source andConWHSVehicleServiceLine
as a child data source, as shown in the following screenshot:

- Either set
Use Relations
property on theConWHSVehicleServiceLine
data source, or add a relation manually. - Add all non-system fields from the
ConWHSVehicleServiceTable
table, and theItemId
field fromConWHSVehicleServiceLine
. - Save and close the view.
We can now create the aggregate measure, which...