3.3.2. Create Data Source and Analysis Report Manually

Create Data Source
  1. Click New Data Source.

  2. Select the Source Type: Database Table(s).

  3. Select the new BIDemo connection in the list of available connections.

  4. Select Reporting and Analysis as the aim of this data source.

    pentaho console
    Figure 20. Data source wizard
  5. Select the dimensions and the fact tables we have created in Spoon: "PENTAHO_DIM_CUSTOMER", "PENTAHO_DIM_PRODUCT", "PENTAHO_FACT_ORDER_LINE":

    pentaho console 2
    Figure 21. Data source wizard
  6. Define Joins for selected tables:

    pentaho console 3
    Figure 22. Data source wizard
  7. Customize the dimensions hierarchy:

    pentaho console 5
    Figure 23. Data source model editor
  8. Save the data source. Select it in the list of available datasources and export the created analysis for the further use:

    pentaho console 4
    Figure 24. Export data source
Create Analysis Report
  1. Click New → Saiku Analytics → Create a new query. Select BiDemo cube and fill measure, columns, and rows as on the screen:

    bi pentaho 5
    Figure 25. Create query
  2. Save report in the directory /home/admin with the name ProductsByTypeAndLocation.

Now you can open the Pentaho report in the CUBA application.