Calculations
Measures ..
Start Schema Workbench:
Ensure Pentaho Server is running:
Calculated Member - Unit Price
Calculated measures are derived metrics defined within the OLAP semantic layer that combine, transform, or aggregate base measures to create business-critical analytics. Unlike base measures that directly represent data stored in source tables, calculated measures use MDX (Multidimensional Expressions) formulas to perform operations ranging from simple arithmetic - such as dividing Sales by Quantity to determine average unit price - to sophisticated analytical functions like identifying top-performing customer segments through ranking and aggregation.
By defining these calculations once within the Mondrian schema rather than recreating them in individual reports, organizations ensure consistent metric definitions across all analyses, eliminate calculation errors from redundant implementations, and embed business logic directly into the data model where it can be centrally maintained and automatically available to all report developers and end users.

In the left pane, right-click ClassicModelsOrders Cube, and click Add Calculated Member.
To create the calculated member, type or choose:
name
UnitPrice
dimension
Measures
visible
selected
formula | formulaElement
[Measures].[Sales] /
[Measures].[Quantity]
formatString
$#,###.00
Save and Publish the Schema.
Analyzer Report
From the User Console Home Perspective, click Create New > Analysis Report.
In the Select Data Source dialog, click Classic Models: ClassicModelsOrders.
Drag Sales to the Measure drop zone.
Drag Quantity to the Measure drop zone below Sales.
Drag Customer to the Rows drop zone.
Save the report in the Training folder as Calculated Member report.
Close the Calculated Member report.
In the left pane, right-click Miniature Models: Sales Cube, and click Add Calculated Member.
To create the calculated member, type or choose:
name
Top 10 Customers
dimension
Measures
visible
Selected
formula | formulaElement
Aggregate(
TopCount([Customers].[Customer_Name].Members, 10, [Measures].Sales))
formatString
$#,###.00
Save and Publish Schema.
x
x
Last updated
Was this helpful?
