For the complete documentation index, see llms.txt. This page is also available as Markdown.

SteelWheels

Overview of a Mondian Schema v3 ..

Workshop - Overview of SteelWheels Schema

SteelWheels Schema

  1. Start Schema Workbench:

Windows (PowerShell):

Linux:

  1. Ensure Pentaho Server is running:

Follow the guide below to understand how a Schema is defined:

JDBC Connection

Before creating any schema components, you must configure a database connection by selecting Options > Connection from the menu and providing essential connection parameters including the connection name, database type (such as Hypersonic, MySQL, Oracle, or PostgreSQL), access method (Native JDBC), host name, database name, port number, and authentication credentials.

Schema Workbench supports a vast range of relational databases through JDBC drivers, allowing you to connect to most common database systems.

JDBC Connection - mysql:sampledata
  1. To connect to the sampledata database, from the menu select Options > Connection.

JDBC Connection
  1. In the Database Connection dialog, type or choose the following:

Field
Value

Connection name

hsqldb_sampledata (you cannot use reserved charaters in the connection name)

Connection type

Hypersonic

Host Name

localhost

Database Name

sampledata

Port Number

9001

Username

pentaho_admin

Password

password

  1. Click Test.

JDBC Connection - hsqldb:sampledata
  1. Click OK to dismiss the Message Box dialog and click OK to close the Database Connection dialog.


JDBC Explorer

  1. To view the SampleData database in JDBC Explorer, from the menu select File > New > JDBC Explorer.

JDBC Explorer
  1. To view the physical tables, expand PUBLIC.

  2. To view the columns in the CUSTOMER_W_TER table, expand CUSTOMER_W_TER.

JDBC Explorer - sampledata
  1. To close JDBC Explorer, in the top-right corner of the JDBC Explorer window, click the X icon.

Steel Wheels Schema

The SteelWheels schema is a comprehensive Mondrian analysis schema built on the SampleData database that demonstrates enterprise-level dimensional modeling for sales analytics. The schema centers around the Sales_2003_2005 cube, which uses the ORDERFACT fact table containing transactional sales data spanning three years.

It features five well-designed dimensions:

Markets dimension with a four-level geographic hierarchy (Territory, Country, State/Province, City) for location-based analysis;

Customers dimension with customer-level details and six member properties providing rich customer attributes;

Products dimension for product categorization and analysis;

Time dimension enabling temporal analysis across years, quarters, and months;

Order Status dimension, which serves as an example of a degenerate dimension existing within the fact table without a separate dimension table.

The schema includes multiple measures such as Quantity and Sales with appropriate aggregators and format strings, making it an ideal reference model for understanding how complex business requirements are translated into functional OLAP cubes that support interactive reporting and analysis in Pentaho Analyzer.

  1. From the menu, select File > Open.

  2. Navigate to: Workshop--Busines-Analytics\PSW\schemas\.

Steel Wheels Schema
  1. Select: SteelWheels.xml.

  2. Click: Open.

  3. To view the schema, in the left pane, expand Sales_2003_2005.

Notice the fact table, dimensions, and measures.

  1. To view the fact table, in the left pane, click Table: ORDERFACT.

  2. In the left pane, expand Markets.

Dimensions

The Markets dimension consists of a hierarchy with four levels with the CUSTOMER_W_TER table.

  1. To view the annotations for the Country level, in the left pane, expand Markets and click Data.Role.

Annotations
  1. In the left pane, expand Customers.

Dimensions & Members

The Customers dimension consists of a hierarchy with one level (Customer) and six-member properties.

  1. View the Product Dimension

  2. Expand the Time Dimension.

Date dimensions are among the most important dimensions of many Mondrian cubes. The usefulness of a cube often depends on the way the date dimension has been modelled. This section shows how to create a basic date dimension and how it can be augmented with properties to suit specific analysis needs.

Time dimensions based on: year/quarter/month/week/day are coded differently in the schema due to MDX time-related functions.

Time dimensions are identified with type=TimeDimension. The role of a level in a time dimension is indicated by the levelType attribute:

  • TimeYears

  • TimeQuarters

  • TimeMonths

  • TimeWeeks

  • TimeDays

TIME Dimension
  1. In the left pane, expand Order Status.

Degenerate Dimensions

Whereas a star dimension has one-dimension table, and a snowflake dimension has two or more, a degenerate dimension has none. All of the columns that describe the dimension live in the fact table.

For example, a degenerate dimension could be created for Order Status because there are only a few values in the Order Status column. Creating a dimension table is unnecessary because it only has a few values, adds no additional information, and incurs the cost of an additional join.

  1. To view the Quantity measure, in the left pane, click Quantity.

Measures

Notice the aggregator, column, and formatString.

  1. (Optional) View the Sales measure.

  2. To close the schema, in the top-right corner of the schema window, click the X icon.

Last updated

Was this helpful?