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

Sales Analysis Dashboard

So we have the building blocks in place .. time to start bringing it all together with a Workshop that builds on the concepts learnt in 'My First Dashboard'.

  • In Layout tab:

    • Create the row and column structure

    • Name your HTML objects

  • In Data Sources tab:

    • Create your SQL queries

    • Test them to ensure they work

  • In Components tab:

    • Add all components

    • Configure their properties

    • Link to HTML objects

    • Set up listeners

  • Preview and test:

    • Use the preview button

    • Test all filters

    • Verify chart interactions

x

We're going to assume that the discovery phase has been completed and after iteration the initial dashboard design has been completed and signed off.

Key Features:

  • Interactive date range selection

  • Multi-select product line and country filters

  • Trend analysis chart

  • Product distribution pie chart

  • Detailed data table with pagination

  • Auto-updating components when filters change

Sales Analysis Dashboard - mock-up
  1. Log into the Pentaho Server.

  2. Select: Browse Files.

  3. Create the following folders

Sales Analysis Dashboard - Folders
  1. In the Pentaho User Console (PUC) and select from the menu: File -> New -> CDE Dashboard.

  2. Click on the Template option.

  3. Select: Empty Sample.

Empty sample
  1. Click on: Settings and enter the following details:

  1. Enter the following details:

  1. Click Ok.

x

x

The mock-up now needs to be 'mapped' to CDE Layout.

We'll be using the 'Bootstrap' template.

x

Following the CDA structure for a datasource type = sql.jdbc

  1. Define the CDA connection to: sampledata database.

  1. Upload the sampledata.cda file to: /Public/CTools-Dashboards/5min-Dashboard directory on the Pentaho Server.

Further details on the SQL Query.

FROM and JOIN Clauses:

Table Relationships:

  • ORDERS (o): Main table containing order headers

    • Primary Key: ORDERNUMBER

    • Contains: ORDERDATE, STATUS, CUSTOMERNUMBER

  • ORDERDETAILS (od): Contains individual line items

    • Composite Key: ORDERNUMBER, PRODUCTCODE

    • Contains: QUANTITYORDERED, PRICEEACH

  • PRODUCTS (p): Product catalog

    • Primary Key: PRODUCTCODE

    • Contains: PRODUCTNAME, PRODUCTLINE

  • CUSTOMERS (c): Customer information

    • Primary Key: CUSTOMERNUMBER

    • Contains: CUSTOMERNAME, COUNTRY

Ordering:

  • Sorts results first by date

  • Then by order number for orders on the same date


And finally .. test the sampledata.cda connection.

x

x

Was this helpful?