Data
Pentaho Analysis is built on the popular Mondrian OLAP engine. The Pentaho BI Platform embeds the
Mondrian engine as part of its architecture. Along with the Pentaho BI Platform, the Mondrian engine
processes MDX requests with the ROLAP (Relational OLAP) schemas. These schema files are XML
metadata models that are created in a specific structure used by the Mondrian engine. These XML models
can be considered cube-like structures which utilize existing FACT and DIMENSION tables found in your
RDBMS. It does not require that an actual physical cube is built or maintained; only that the metadata model
is created.
This XML-based metadata structure can be created using a text editor or the Schema Workbench. After the
schema is created and published to the Pentaho BI Server there are some additional steps necessary to
Follow the five basic steps below when creating a Pentaho Analysis View using the Schema Workbench to
1. Configure your Pentaho BI Server data source using the Pentaho Admin Console
4. Use the Pentaho User Console to Create a New Analyzer Report (Enterprise Edition) or Analysis
View (Community)
3. Copy your JDBC driver to that folder if necessary. For example for Oracle 10g, the latest
ojdbc14.jar file (found from Oracle's Web site) to that location were copied.
1. Go to Tools > Connection to enter your JDBC parameters for your RDBMS
2. Make sure the database is running, click Test Connection, if successful click Accept
4. Go to File > New > Schema to name the schema in name attribute value.
5. Right-click Schema > Add Cube to name the cube in name attribute value.
6. Select Right Click, Add Table, enter schema ID, if applicable, and the fact table name.
9. Name the measure; select an aggregator such as sum; select the column and data type.
10. Right-click the cube name and select Add Dimension.
11. Select the appropriate foreign key and dimension type such as a Standard Dimension or Time
Dimension.
14. Right click "default", select Add Table, select the schema and the Table name
15. Right-click Hierarchy and add level.
16. At minimum, select the Name level, and the column. Sometimes it is necessary to specify
the levelType for certain date dimension data types to work correctly.
17. Repeat step 15 and 16 for different dimensional levels.
Publishing and Testing Your Analysis Schema on the Pentaho BI
Platform
Test
1. File, New, MDX Query
2.
MDX Usage: select [<Dimension name>].[<Hierarchy name] on columns from [<Cube name>]
MDX Example:
ON COLUMNS,
NON EMPTY
ON ROWS
\\\\
Axis #0:
{}
Axis #1:
Axis #2:
Note: If query fails to return data then there may be an issue. Adjust the schema design accordingly and
retest. Most common problems are the data types being used.
Publish
1. File -> Publish
2. Log in to the Pentaho Solution Repository using your user ID and publish password credentials
4. Provide the name of the Pentaho Database connection that you set up in the Pentaho Admin
Console under the Pentaho or JNDI Data Source input box, leave register XMLA Data Source
Checked
5. Click Publish
4. Click OK
Repository using the blue floppy disk icons in the tool bar. (Your view may vary depending on the build you
have)
This view is now available to be access and manged in the Pentaho Solution Repository List