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

Steel Wheels

Walk-through of existing model ..

Workshop - Overview of SteelWheels Schema

SteelWheels Model

  1. Ensure Pentaho Server is running:

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

JDBC Connection

Before creating a schema, you must configure a database connection in the Managed Data Sources and provide 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.

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

  1. Log into Pentaho Server > Managed Data Sources.

  2. From the drop-down menu, Select: New Connection.

Manage Data Sources
  1. In the Database Connection dialog, type or choose the following:

Field
Value

Connection name

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

Connection type

hsqldb

Host Name

localhost

Database Name

sampledata

Port Number

9001

Username

pentaho_admin

Password

password

JDBC Connection - SampleData
  1. Click Test.

  2. Click OK to dismiss the Message Box dialog and click OK to close the Database Connection dialog.

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. Log into the Pentaho User Console (PUC).

  1. Open the Model Editor by taking one of the following actions:

  • If you are using the Modern Design of PUC, in the menu on the left side of the page, click Model Editor.

  • If you are using the Classic Design of PUC, click File > Model Editor.

The Semantic Model Editor opens.

Semantic Model Editor - View models
  1. The Semantic Model Editor opens.

Semantic Model Editor - Import
  1. Click Import. The Please Select Data Source window opens.

Import - Select Model
  1. Select: SteelWheels > Import

SteelWheels Model

Notice the fact table, dimensions, and measures.

Feature
Description

The JDBC data connection retrives the schema & tables.

To start defining the model you just darg & drop the required tables onto the canvas. You can also click on the to Preview the data.

The Canvas will display the name of the cube: Sales_2003_2005. This is editable.

When you place your cursor on the canvas further options enable you to add measures & degenerate dimensions along with, collapse all nodes, hide cube edges (relationships).

  1. To view the XML schema, select Advanced tab.

SteelWheels XML Schema
  1. To preview the Fact table data, click Table: ORDERFACT.

Preview Fact table - ORDERFACT
Preview ORDERFACT
  1. Click on the 3 dots to edit the Fact Table - just the Alias!

  1. In the Model Structure panel, select & expand CUSTOMERS.

CUSTOMERS Dimension

The CUSTOMERS dimension consists of a hierarchy - Customers - with one Level - Customer - with the CUSTOMER_W_TER table.

  1. The following actions are available:

Icon
Action

Enable you to edit & apply the required settings at: Dimension Hierarchy Level

Preview the table data

Indicates the Key that is used to define the relationship - join - with the FACT table.

  1. Place your cusor over the 'Relationship' to view the corresponding Key in the FACT table.

Fact Table Key
  1. The Customer Level also has a number of Properties. Currently these are only displayed in the XML - </> Advanced tab.

Properties

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

  1. To view Annotations, again take a look at the Country Level under the MARKETS Dimension > Markets Hierarchy.

Annottaions
  1. 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.

Time dimensions based on: year/quarter/month/week/day/hours/minutes/seconds 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 Level Type attribute:

  • TimeYears

  • TimeQuarters

  • TimeMonths

  • TimeWeeks

  • TimeDays

TIME Dimension
  1. Edit Years. Notice the Level Type has been set as TimeYears.

TIME Dimension - Years Level
  1. Expand the Degenerate Dimension - ORDERSTATUS.

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 reside in the fact table.

For example, the degenerate dimension - ORDERSTATUS - is possible as there are only a few values residing in the Order Status column in the ORDERFACT table.

  1. Finally .. highlight the Sales measure.

Sales Measure
  1. Edit the measure to see how its configured.

Edit Measure

Notice: Default Aggregation, Source Column, and Data Type.

Last updated

Was this helpful?