Classic Models
Workshop - Classic Models
Welcome to the Classic Models Schema creation workshop. In this hands-on guided demonstration, you will learn to build a complete Mondrian schema from the ground up using Schema Workbench. Unlike the SteelWheels overview where you examined an existing schema, this workshop will walk you through the entire process of creating a new multidimensional schema, from establishing database connections to publishing your completed schema to the Pentaho BA Server.
The Classic Models schema represents a typical sales and order management scenario, providing you with practical experience in the fundamental skills required for dimensional modeling and OLAP cube design. By the end of this workshop, you will have created a fully functional schema ready for business intelligence reporting and analysis.
In this guided demonstration, you will:
Create a new schema - Learn the foundational steps to initialize a new Mondrian schema, including naming conventions and initial schema setup in Schema Workbench
Add a cube to a schema - Understand the role of cubes in multidimensional modeling and configure the ClassicModelsOrders cube as the analytical structure for your data
Add the fact table to a cube - Identify and configure the ORDERFACT table as your central fact table, which contains the measurable business events and foreign keys to dimension tables
Add measures to a cube - Define quantitative metrics such as Sales that will be aggregated and analyzed, including proper configuration of:
Column mappings from the fact table
Aggregation functions (sum, count, avg, min, max)
Data types and format strings for proper display
Measure visibility and naming
Add basic dimensions to a cube - Build the dimensional framework for analysis by creating two complete dimensions:
CUSTOMERS Dimension: Including Territory and Customer Name levels with proper hierarchy configuration
PRODUCTS Dimension: Including Product Line and Vendor levels
Learn to configure foreign keys, primary keys, hierarchies, and level properties
Publish the schema to the Pentaho BA Server - Complete the development lifecycle by deploying your schema to the BA Server, making it available as a data source for Analyzer reports and interactive analysis

Start Schema Workbench:
Windows (Powershell):
cd \
cd Pentaho/design-tools/schema-workbench/
./workbench.batLinux:
cd
cd Pentaho/design-tools/schema-workbench/
./workbench.shEnsure that the Pentaho Server is up and running:
Follow the guide below to understand how Classic Models Schema is defined:
JDBC Connection
A JDBC (Java Database Connectivity) connection in Schema Workbench establishes the link between the tool and your source database, enabling you to access physical tables and columns needed to build Mondrian schemas.
If you're using the Pentaho Lab then the driver has already been copied to the /lib directory.
To create a JDBC connection you will need to copy the H JDBC driver for your database into the PSW install directory ...\schema-workbench\lib.
Restart the Pentaho Metadata Editor, and you will see your database in the Connection Type list.
To connect to the sampledata database, from the menu select Options > Connection.

In the Database Connection dialog, type or choose the following:
Connection name
hsqldb:sampledata
Connection type
Hypersonic
Host Name
localhost
Database Name
sampledata
Port Number
9001
Username
pentaho_admin
Password
password
Click Test.

Click OK to dismiss the Message Box dialog and click OK to close the Database Connection dialog.
Last updated
Was this helpful?










