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

Standard Model

Apply your schema creation skills ..

Workshop - Miniature Model

Schema - Miniature Models

  1. Start Schema Workbench:

Windows (PowerShell):

Linux:

  1. Ensure Pentaho Server is running:


Data Source (Reference)

  1. To create a new connection, from the menu select Options > Connection.

  2. Enter the following details and Test the connection:

Field
Value

Connection name

hsqldb_sampledata

Connection type

Hypersonic

Host Name

localhost

Database Name

sampledata

Port Number

9001

Username

pentaho_admin

Password

password


Create Schema & add Cube

  1. From the menu choose File > New > Schema. Alternatively, from the toolbar, click the New button, and click Schema.

  2. In the name field, replace the existing value by typing: Miniature Models, and then press Tab. Important: Remember to press Tab after entering a new value.

  3. On the schema toolbar, click Add cube.

  4. In the name field, replace the existing value by typing: Sales_FY2003_2005, and then press Tab.

  5. To save the schema, from the menu select File > Save.

  6. In the Save dialog, type MinitiatureModels.xml, and then click Save.


Add ORDERFACT Table

  1. To add the ORDERFACT table, in the left pane, right-click Exercise Cube, and click Add Table.

  2. Click in the Value for schema, select PUBLIC, and press Tab.

  3. Click in the Value for name, select ORDERFACT, and press Tab.

  4. To save the schema, on the toolbar, click Save.


Customers & Products Dimensions, Hierarchies & Levels

  1. To add a CUSTOMERS dimension, in the left pane, right-click Exercise Cube, and click Add Dimension.

  2. To create the CUSTOMERS dimension, type or choose:

Attribute
Value

name

CUSTOMERS

foreignKey

CUSTOMERNUMBER

  1. To add the CUSTOMER_W_TER table, right-click New Hierarchy 0, and click Add Table.

  2. Click in the Value for schema, select PUBLIC and press Tab.

  3. Click in the Value for name, select CUSTOMER_W_TER, and press Tab.

  4. To name the hierarchy and set the primary key, click New Hierarchy 0.

  5. To define the Customers hierarchy, type or choose:

Attribute
Value

name

Customers

allMemberName

All Customers

primaryKey

CUSTOMERNUMBERS

  1. To add a level, in the left pane, right-click the Customers hierarchy, and select Add Level.

  2. To create the Territory level, type or choose:

Attribute
Value

name

Territory

column

TERRITORY

type

String

uniqueMembers

Selected

levelType

Regular

hideMemberIf

Never

  1. To add another level, in the left pane, right-click the Customers (hierarchy), and select Add Level.

  2. To create the Country level, type or choose:

Attribute
Value

name

Country

column

COUNTRY

type

String

levelType

Regular

hideMemberIf

Never

  1. To add another level, in the left pane, right-click the Customers (hierarchy), and select Add Level.

  2. To create the Customer level, type or choose:

Attribute
Value

name

Customer Name

column

CUSTOMERNAME

type

String

levelType

Regular

hideMemberIf

Never

  1. To save the schema, on the toolbar, click Save.

  2. To add another dimension, in the left pane, right-click Sales cube, and click Add Dimension.

  3. To create the PRODUCTS dimension, type or choose:

Attribute
Value

name

PRODUCTS

foreignKey

PRODUCTCODE

  1. To view the hierarchy, in the left pane, expand PRODUCTS, and then click New Hierarchy 0.

  2. To add the PRODUCTS table, right-click New Hierarchy 0, and click Add Table.

  3. Click in the value for schema, select PUBLIC, and press Tab.

  4. Click in the Value for name, select PRODUCTS, and press Tab.

  5. To name the hierarchy and set the primary key, click New Hierarchy 0.

  6. To define the Product hierarchy, type or choose:

Attribute
Value

name

Products

allMemberName

All Products

primaryKey

PRODUCTCODE

  1. To add a level, in the left pane, right-click the Products (hierarchy), and select Add Level.

  2. To create the Line level, type or choose:

name

Line

column

PRODUCTLINE

type

String

uniqueMembers

Selected

levelType

Regular

hideMemberIf

Never

  1. To add another level, in the left pane, right-click the Products (hierarchy), and select Add Level.

  2. To create the Vendor level, type or choose:

Attribute
Value

name

Vendor

column

PRODUCTVENDOR

type

String

levelType

Regular

hideMemberIf

Never

  1. To add another level, in the left pane, right-click the Products (hierarchy), and select Add Level.

  2. To create the Product Name level, type or choose:

name

Product Name

column

PRODUCTNAME

type

String

levelType

Regular

hideMenberIf

Never

  1. To save the schema, on the toolbar, click Save.


Add Sales Measure

  1. To add a measure for Sales, in the left pane, right-click Sales cube, and click Add Measure.

  2. To create the Sales measure, type or choose:

Attribute
Value

name

Sales

aggregator

sum

column

TOTALPRICE

formatString

$#,###.00

datatype

Numeric

  1. Repeat to add Quantity measure.

Attribute
Value

name

Quantity Ordered

aggregator

distinct-count

column

QUANTITYORDERED

formatString

#

datatype

Integer

  1. To save the schema, on the toolbar, click Save as Miniature Models - original.xml.


Publish the Schema

  1. To publish the schema, from the menu, select File > Publish.

  2. To publish the schema:

User field, type: admin.

Password field, type: password.

Click: Publish.

  1. To dismiss the Schema dialog, click OK.


Create a Report in Analyzer

  1. Return to the User Console.

  2. From the User Console Home Perspective, click Create New > Analysis Report.

  3. In the Select Data Source dialog, click Miniature Models: Sales_FY2003_2005.

  4. Drag Sales to the Measure drop zone.

  5. Drag Territory and Line to the Rows drop zone.

  6. Minimize the User Console and return to Schema Workbench.


Last updated

Was this helpful?