> For the complete documentation index, see [llms.txt](https://academy.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.pentaho.com/pdi-developer-path/speciality-courses/preparing-data-for-analytics.md). Agents can also search and read this documentation through its [MCP server](https://academy.pentaho.com/~gitbook/mcp).

# Preparing Data for Analytics

Build the star schemas cubes sit on with Pentaho Data Integration: a date dimension, slowly changing dimensions, fact and summary tables, and a scheduled load that refreshes the cube.

{% hint style="warning" icon="eye" %}
**Preview: the new Pentaho Academy launches in January 2027.**

This page is an early draft, shared now so Pentaho users can see where the Academy is heading: technical enablement built on learning paths that match your job role, from your first course to certification. Until launch, some links, labs and resources are still being put in place.

Built from `developer-dataprep-specialty` 0.1.2 in Pentaho Content Manager. Module and lesson names, the reading-or-workshop kinds and the times come straight from each lab's manifest. Items marked REPLACE-ME need an owner's confirmation.
{% endhint %}

Use Pentaho Data Integration to build the star schemas and summary tables that cubes and domains sit on: a date dimension, dimensions with slowly changing history, fact and summary tables, and a scheduled load that refreshes the cube.

{% columns %}
{% column %}

<p align="center"><i class="fa-file-lines" style="color:green;">:file-lines:</i><br><strong>11 lessons</strong><br><em>across 5 modules</em></p>
{% endcolumn %}

{% column %}

<p align="center"><i class="fa-flask" style="color:orange;">:flask:</i><br><strong>7 workshops</strong><br><em>hands-on labs</em></p>
{% endcolumn %}

{% column %}

<p align="center"><i class="fa-clock" style="color:cyan;">:clock:</i><br><strong>~6h 55m</strong><br><em>including a 3h capstone</em></p>
{% endcolumn %}
{% endcolumns %}

{% hint style="success" icon="cloud-arrow-up" %}
Every workshop is hands-on, on a Windows lab machine with the Lab Guide embedded. REPLACE-ME — confirm the hosted lab for this Speciality.
{% endhint %}

***

<h3 align="center">Before you start</h3>

{% columns %}
{% column %}
{% hint style="success" icon="circle-check" %}
**What you'll need**

PDI Developer, Level 1 — Practitioner, or the same skills: building, previewing and running a transformation and a job in Spoon. Basic SQL.
{% endhint %}
{% endcolumn %}

{% column %}
{% hint style="info" icon="tag" %}
**Built against**

Pentaho Enterprise Edition **11.0.0.3 (SP3)**: Spoon, and the Pentaho Server with Mondrian and Analyzer, beside a MySQL database holding the Steel Wheels sample data, on a Windows lab machine.
{% endhint %}
{% endcolumn %}
{% endcolumns %}

***

{% hint style="info" icon="trophy" %}

#### What you'll build

A sales mart built with Pentaho Data Integration — a generated date dimension, dimensions with slowly changing history, a fact table loaded with surrogate keys and summary tables for aggregates — loaded by a job scheduled on the Pentaho Server that refreshes the cube when it finishes.
{% endhint %}

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FcFAZVg7pHIIGrVeBPIg5%2Fdp-sales-mart-star.svg?alt=media" alt="The Sales Mart star schema. mart_fact_sales, one row per order line, keyed on order_number and order_line_number, joins to mart_dim_date by date_key, to mart_dim_customer, one row per customer version, by customer_key, and to mart_dim_product by product_key."><figcaption><p>The Sales Mart: one fact table at the order line grain, three dimensions, one surrogate key each</p></figcaption></figure>

***

<h3 align="center">Course outline</h3>

<p align="center"><i class="fa-file-lines" style="color:green;">:file-lines:</i> reading · <i class="fa-flask" style="color:orange;">:flask:</i> hands-on workshop</p>

{% hint style="info" icon="circle-info" %}
Full lessons unlock once you're enrolled — this is the outline only. Times are the lab guides' own estimates.
{% endhint %}

<table data-search="false"><thead><tr><th width="382">Module</th><th width="115" align="center">Reading</th><th width="132" align="center">Workshops</th><th width="100" align="right">Time</th></tr></thead><tbody><tr><td>Getting Started</td><td align="center">2</td><td align="center">—</td><td align="right">~20m</td></tr><tr><td>Modeling the Star</td><td align="center">1</td><td align="center">2</td><td align="right">~55m</td></tr><tr><td>Loading Facts</td><td align="center">1</td><td align="center">2</td><td align="right">~1h 25m</td></tr><tr><td>Automate and Publish</td><td align="center">—</td><td align="center">2</td><td align="right">~1h 15m</td></tr><tr><td>Capstone Project</td><td align="center">—</td><td align="center">1</td><td align="right">~3h</td></tr><tr><td><strong>Total</strong></td><td align="center"><strong>4</strong></td><td align="center"><strong>7</strong></td><td align="right"><strong>~6h 55m</strong></td></tr></tbody></table>

{% stepper %}
{% step %}

### <i class="fa-rocket" style="color:blue;">:rocket:</i> Getting Started

`2 readings · ~20m`

How to get the most out of this guide, and the route from source data to a star schema an analyst can model.

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2F4XUO60v5iFiPgDHjziI8%2Fdp-lab-setup.svg?alt=media" alt="Spoon, the User Console and DBeaver on your machine. The job built in Spoon is uploaded to the Pentaho Server, whose scheduler loads the mart; the User Console queries Mondrian, which reads the mart with SQL; DBeaver queries it directly. The mart is in MySQL on port 3306."><figcaption><p>Your tools, the Pentaho Server and MySQL</p></figcaption></figure>

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FLf8hV3DIJbhOUAks99E7%2Fdp-order-system-to-cube.svg?alt=media" alt="The route from the order system to the cube. CUSTOMERS, ORDERS, ORDERDETAILS and PRODUCTS are extracted to files; PDI transforms the dimensions, then the facts, and loads the star. Group by summarizes it into agg_ tables; the Mondrian schema maps both to the cube that Analyzer queries."><figcaption><p>From the order system to the cube: extract, transform dimensions before facts, load, summarize, then the cube</p></figcaption></figure>

<details>

<summary>See the full breakdown</summary>

<table data-search="false"><thead><tr><th width="79"></th><th>Lesson</th><th width="90">Time</th></tr></thead><tbody><tr><td><i class="fa-file-lines" style="color:green;">:file-lines:</i></td><td>Before You Start</td><td>~5m</td></tr><tr><td><i class="fa-file-lines" style="color:green;">:file-lines:</i></td><td>From Source Data to a Star Schema</td><td>~15m</td></tr></tbody></table>

</details>
{% endstep %}

{% step %}

### <i class="fa-star" style="color:blue;">:star:</i> Modeling the Star

`1 reading · 2 workshops · ~55m`

Dimensional modelling in practice: a date dimension, then dimensions that keep their history.

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FyciHJ6cZdqdNCPh36umB%2Fdp-scd-euro-plus-moves.svg?alt=media" alt="Type 2 beside type 1. Euro+ Shopping Channel has two mart_dim_customer rows: key 11, Madrid, closed on 15 May 2005, and key 123, Barcelona, from that day. Order 10417 finds key 11; order 10424 finds key 123. La Rochelle Gifts, key 4, has its credit limit overwritten."><figcaption><p>One extract, two kinds of change: Euro+ gets a new version (type 2), La Rochelle Gifts an overwrite (type 1)</p></figcaption></figure>

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FAFd7bNtzPEVPvRwgezGW%2Fdp-date-one-day.svg?alt=media" alt="One row through tr_dim_date.ktr: gr-days, seq-day_offset, calc-date_parts, two Value mappers, sv-drop_helpers and to-dim_date turn a start date and the number 5 into the row for 6 January 2003, with date_key 20030106, QTR1 and Jan."><figcaption><p>Build a Date Dimension: one day through the transformation</p></figcaption></figure>

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FrafCsPe6FlDlzAWz86De%2Fdp-customer-four-outcomes.svg?alt=media" alt="The second customer extract, 123 rows, reaches dlu-dim_customer. A new customer gets version 1; a changed city closes a version and adds another; a changed credit limit or name overwrites the row; 119 customers do not differ and nothing is written."><figcaption><p>Load Dimensions with Slowly Changing History: the second extract, four outcomes</p></figcaption></figure>

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FvXQzq0oR0X6MgO5mFf5H%2Fdp-product-overwrite.svg?alt=media" alt="The 110 rows of products.csv reach dlu-dim_product. No row found: the product is inserted. A field differs: the row is overwritten, same key. Nothing differs: nothing is written."><figcaption><p>The product dimension, type 1: no outcome adds a version</p></figcaption></figure>

<details>

<summary>See the full breakdown</summary>

<table data-search="false"><thead><tr><th width="79"></th><th>Lesson</th><th width="90">Time</th></tr></thead><tbody><tr><td><i class="fa-file-lines" style="color:green;">:file-lines:</i></td><td>Overview of Dimensional Modeling</td><td>~15m</td></tr><tr><td><i class="fa-flask" style="color:orange;">:flask:</i></td><td>Build a Date Dimension</td><td>~10m</td></tr><tr><td><i class="fa-flask" style="color:orange;">:flask:</i></td><td>Load Dimensions with Slowly Changing History</td><td>~30m</td></tr></tbody></table>

</details>
{% endstep %}

{% step %}

### <i class="fa-table-cells" style="color:blue;">:table-cells:</i> Loading Facts

`1 reading · 2 workshops · ~1h 25m`

Load the fact table against its dimensions, then the summary tables that aggregate tables and dashboards read.

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2F2maWjyfVfdz9uM6TZ5ip%2Fdp-safe-to-run-twice.svg?alt=media" alt="Insert / Update looks an order line up by order number and line number. Not in the table: it is inserted. There and different: it is updated. There and the same: nothing changes. The primary key fails the load rather than double a sale."><figcaption><p>Overview of Loading Facts: why a second run adds nothing</p></figcaption></figure>

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FT1PO8ktyGlUeee758KTf%2Fdp-fact-load-one-line.svg?alt=media" alt="The first order line through tr_fact_sales.ktr. Lookups add date_key 20030106, customer_key 86, the version valid on the order date, and product_key 80; a lookup that finds nothing returns key 0. calc-sales_amount adds 1689.03 and iu-fact_sales inserts or updates the line."><figcaption><p>Load the Fact Table: three lookups, a calculation, and a write that is safe to repeat</p></figcaption></figure>

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FMvZs0Z6iIFw2q75J2nHu%2Fdp-summary-two-flows.svg?alt=media" alt="tr_agg_sales.ktr sums the same 2,867 order lines two ways: by month and product line into 175 rows, and by year and territory into 12 rows."><figcaption><p>Summary Tables for Aggregates: the same order lines, summed two ways</p></figcaption></figure>

<details>

<summary>See the full breakdown</summary>

<table data-search="false"><thead><tr><th width="79"></th><th>Lesson</th><th width="90">Time</th></tr></thead><tbody><tr><td><i class="fa-file-lines" style="color:green;">:file-lines:</i></td><td>Overview of Loading Facts</td><td>~15m</td></tr><tr><td><i class="fa-flask" style="color:orange;">:flask:</i></td><td>Load the Fact Table</td><td>~40m</td></tr><tr><td><i class="fa-flask" style="color:orange;">:flask:</i></td><td>Summary Tables for Aggregates</td><td>~30m</td></tr></tbody></table>

</details>
{% endstep %}

{% step %}

### <i class="fa-calendar-check" style="color:blue;">:calendar-check:</i> Automate and Publish

`2 workshops · ~1h 15m`

Schedule the load on the Pentaho Server, and refresh the cube once new data arrives.

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FHKTHjg32qOORbVOonV7N%2Fdp-load-job.svg?alt=media" alt="The job jb_load_sales_mart: Start runs tr_dim_customer, tr_dim_product, tr_fact_sales and tr_agg_sales, then Success. Each transformation entry has a hop to Abort job, followed when it fails."><figcaption><p>Schedule the Load on the Pentaho Server: dimensions, then facts, then summaries</p></figcaption></figure>

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FEfewVvjVNAdbODZUXAhV%2Fdp-cube-cache-june.svg?alt=media" alt="Four moments. The report is opened and Mondrian caches January to May. June is loaded and the cache is not told. The report opened again still ends with May. After a refresh, the table is read again and the report ends with June."><figcaption><p>Refresh the Cube After a Load: why June is in the mart before it is in the report</p></figcaption></figure>

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FNBmNNCnuiEyXe3aSmN7M%2Fdp-load-job-refresh.svg?alt=media" alt="The same job with the HTTP entry refresh-mondrian-cache between tr_agg_sales and Success, with its own hop to Abort job."><figcaption><p>The load job with refresh-mondrian-cache between tr_agg_sales and Success</p></figcaption></figure>

<details>

<summary>See the full breakdown</summary>

<table data-search="false"><thead><tr><th width="79"></th><th>Lesson</th><th width="90">Time</th></tr></thead><tbody><tr><td><i class="fa-flask" style="color:orange;">:flask:</i></td><td>Schedule the Load on the Pentaho Server</td><td>~35m</td></tr><tr><td><i class="fa-flask" style="color:orange;">:flask:</i></td><td>Refresh the Cube After a Load</td><td>~40m</td></tr></tbody></table>

</details>
{% endstep %}

{% step %}

### <i class="fa-trophy" style="color:blue;">:trophy:</i> Capstone Project

`1 workshop · ~3h`

Build a sales mart from raw orders, schedule its load, and point a cube at it.

<figure><img src="https://1407627559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zO083cdmEBCaZG8U9P2%2Fuploads%2FOipXRxf6tihS28ZrLwMN%2Fdp-capstone-sales-rep-mart.svg?alt=media" alt="The capstone&#x27;s target. rep_fact_order_lines, one row per order line, joins to rep_dim_date, rep_dim_customer, rep_dim_product and rep_dim_sales_rep by the version valid on the order date; Gerard Hernandez moves from Paris to London on 15 May 2005. A nightly job ends by refreshing the cube."><figcaption><p>The rep_ star, its aggregate, and the nightly job that ends by refreshing the cube</p></figcaption></figure>

<details>

<summary>See the full breakdown</summary>

<table data-search="false"><thead><tr><th width="79"></th><th>Lesson</th><th width="90">Time</th></tr></thead><tbody><tr><td><i class="fa-flask" style="color:orange;">:flask:</i></td><td>Capstone: A Mart for the Sales Cube</td><td>~3h</td></tr></tbody></table>

</details>
{% endstep %}
{% endstepper %}

***

<h3 align="center">Exam &#x26; accreditation</h3>

{% columns %}
{% column %}
{% hint style="info" icon="clipboard-check" %}
**The course exam**

30 questions drawn at random from a pool of 36, covering the taught modules. The pass mark is 80%. It's open-book: browse any module or ask the AI assistant while you work.
{% endhint %}
{% endcolumn %}

{% column %}
{% hint style="warning" icon="file-certificate" %}
**Course accreditation**

Pass the exam and complete the capstone, and you'll automatically be able to download your course accreditation, valid for two years. The exam is self-paced and not proctored. This Speciality is optional. It does not count towards Level 3 — Certified.
{% endhint %}
{% endcolumn %}
{% endcolumns %}

***

<h3 align="center">How to get access</h3>

{% stepper %}
{% step %}
**Read the course outlines**

Open the level or speciality you're considering and check the modules cover the work you actually do.
{% endstep %}

{% step %}
**Talk to your Pentaho Account Executive**

Courses and subscriptions are purchased through your Pentaho Account Executive — a single seat or the whole team. They'll size it with you and get the order placed. No Account Executive yet? Email <academy@pentaho.com> and we'll connect you.
{% endstep %}

{% step %}
**Receive your voucher code**

You'll be sent a voucher code giving access to the course or courses you bought.
{% endstep %}

{% step %}
**Redeem your code and start your lab**

Redeem the code on the Pentaho training portal and your hosted lab deploys with the Lab Guide built in. Every screen is shown step by step in the voucher walkthrough.

{% embed url="<https://pentaho.selfpaced.training/access/login>" %}
{% endstep %}
{% endstepper %}

***

<p align="center"><a href="https://academy.pentaho.com/pdi-developer-path/speciality-courses.md" class="button secondary" data-icon="arrow-left">Back to Speciality Courses</a></p>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://academy.pentaho.com/pdi-developer-path/speciality-courses/preparing-data-for-analytics.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
