Pentaho CTools
Data IntegrationBusiness AnalyticsData CatalogData QualityLLM
  • Overview
    • CTools
  • C-Tools
    • Getting Started
      • First Steps
      • My First Dashboard
    • Community Data Access
      • Creating a CDA
        • Parameters
        • CDA API
        • CDA Data Sources
    • Community Dashboard Framework
      • CDF Dashboard
      • CDF Dashboards
    • Community Dashboard Editor
      • UI Overview
        • Carrier Dashboard
      • Components
        • Carrier Dashboard
    • Community Graphics Generator
      • Carrier Dashboard
  • Use Cases
Powered by GitBook
On this page

Was this helpful?

  1. C-Tools
  2. Getting Started

My First Dashboard

15min dashboard ..

PreviousFirst StepsNextCommunity Data Access

Last updated 6 months ago

Was this helpful?

So let's dive right in ..

In this workshop we're going to build a simple dashboard based on the SteelWheels Mondrian data source.

The aim of the workshop is to create a '15min dashboard' that introduces:

• OLAP Chart Wizard

• CDE components

Don't worry about all he features & options .. We'll be diving into each perspective in the next set of workshops.

To create a New Dashboard

  1. Log in Pentaho Server -> Create New -> CDE Dashboard.

  1. Click on the Template option.

  1. Select: Two x One Template

The resulting Dashboard is composed of:

• 5 main rows

• body row is split into 2 columns

• the first column is split into a further 3 rows

• the first & third rows have columns which hold Panel_1 & Panel_2

• Panel_3 is held in the second column

• further rows define header, footer and spacers

  1. Click on 'Save as ..' in the toolbar & enter the following details.

  1. Preview the dashboard (eye icon - top right).

Let's start with the Header & Footer rows..

Header Row

  1. Expand the Header row until you reach the HTML Property.

  2. Click on the ... and edit the HTML - we're going to enter some padding to align the text.

<h2 style="color:#FFFFFF; padding: 15px 0">My First Dashboard</h2> 
  1. Click on the Preview icon - last one in toolbar.


Footer

  1. Create a folder: /resources/img

  2. Upload: logo_pentaho.png

  3. Expand the Footer row until you reach the HTML property.

  4. Edit the HTML

<a style="position:relative;top:5px; right:15px; float:right; color:#FFFFFF;" " border="0" title="Pentaho Professional Services" href="https://pentaho.com/pentaho-professional-services/">
<img src="./resources/img/logo.png"/>    Pentaho Professional Services</a>   
  1. Change the Footer column color to match the logo.

BackgroundColor: #3c4484

Dont forget to click on the color wheel ..

  1. Save & Preview the dashboard.

Bit of background info ..

Schema WorkBench is a Pentaho Design Tool used to define a multidimensional MDX schema.

• Cube - is the FACT table in a STAR schema.

• Dimensions - map to the database tables.

• Levels - map to the database columns in the table. The order defines the 'paths' you can take to 'slice& dice' the data.

If you need to 'slice & dice' your data, then you will have spent many hours in Schema Workbench, defining your OLAP reporting cubes.

CTools - OLAP Chart Wizard - can leverage the schema.xml that connects to the underlying sampledata database tables.

You can test MDX queries against your cubes..


Add a Chart

  1. Select: Connection Perspective.

  1. Click on OLAP Chart Wizard & enter the following details:

Property
Value

Name

Total_Sales

Html Object

Panel_3

Catalog

SteelWheels

Cube

SteelWheelsSales

Dimensions

Territory

Measures

Sales

  1. Click OK.

  2. Save & Preview dashboard.

Looks like we made need to apply a few tweaks to align and so on ..

Let's add our other Charts and then take a look at the Chart Components.

  1. Again .. Click on the OLAP Chart Wizard & enter the following details:

Setting
Value

Name

Line_Sales

Html Object

Panel_1

Catalog

SteelWheels

Cube

SteelWheelsSales

Dimensions

Line

Measures

Sales

  1. Click OK.

  2. Save.

  3. Again .. Click on the OLAP Chart Wizard & enter the following details:

Property
Value

Name

Years_Sales

Html Object

Years_Sales

Catalog

SteelWhels

Cube

SteelWheelsSales

Dimensions

Years

Measures

Sales

  1. Save and Render.


These components are configured with a set of Properties.

Chart Component

  1. Click on the Components option in the toolbar.

As you can see .. the Wizard has automatically added 3 Chart components with their associated properties.

  1. Highlight the CCC Pie Chart Component.

  2. Edit the following property values:

Property
Value

Title

Total Sales

Height

400

  1. Highlight the CCC Line Chart Component.

  2. Edit the following property values:

Property
Value

Title

Product Line Sales

Legend

False

  1. Highlight the CCC Bar Chart Component.

Property
Value

Title

Yearly Sales

Legend

False

  1. Again Save & Preview the dashboard.

Unless you have previously created the Charts, you will need to make some adjustments to the Layout.

  1. Click on the Layout option and enter the following details:

Layout Structure
Property
Value

Row 3 Body

Height

720

Column 1-1 Row 1

Height

360

Column Panel_1

Height

355

Row 3-3

Height

360

Column 1-2 Panel_2

Height

355

Column 2 Panel_3

Height

725

Text Align

Center

The Steel Wheels Inc sampledata dataset resides on a MariaDB.

Based on the ER diagram, we can build our SQL Query, restricting to YR 2004.

  1. Download the MariaDB JDBC driver.

  1. Stop the Pentaho Server

cd
cd /opt/pentaho/server/pentaho-server/
sudo ./stop-pentaho.sh
  1. Copy the driver to the ~/opt/pentaho/server/pentaho-server/tomcat/lib/ directory.

// Some code
  1. Restart the Pentaho Server.

cd
cd /opt/pentaho/server/pentaho-server/
sudo ./start-pentaho.sh
  1. Once logged in select: Manage Data Sources.

  2. Click on the Cog wheel and from the drop-down menu, select: New Connection

  1. Enter your connection details in the selected database panel.

  1. Test the database connection.

If connecting to a Mondrian schema, ensure the connection name is the same as the schema connection name.

DbSchema Supported Databases
Download MariaDB JDBC driver
My First dashboard
New CDE Dashboard
Apply a Template
Apply a Template - Two x One
CDE Layout - Two x One
Save as ..
Dashboard template - preview
Preview dashboard
Color picker
Dashboard Layout - Header & Footer
SteelWheelsSales OLAP Schema
MDX Query
Connection Perspective
Pie Chart - Total Sales
Panel_3 - Total sales
Line Chart - Line sales
My First Dashboard
Chart Components
ER - sampledata
New Connection
Database connection - SampleData
Logo