Table of Contents
Creating an Analysis View
(note: In more recent versions of the product (4.2 and later), OLAP data is available via Ad-Hoc. JPivot OLAP views, as described below, will ultimately be deprecated in favor of Ad-Hoc OLAP analysis - Please refer to the JasperReports Server User Guide and OLAP User Guides for more information)
This guide helps you to create your first Analysis View. It requires FoodMart data source, a MySQL database example provided when installing JasperReports Server, and an OLAP schema created with Jaspersoft OLAP Schema Workbench.
OLAP Schema
- Log into JasperReports Server. On the Home page, click on View > Repository.
- In the Repository manager, select the Analysis Schemas folder (Analysis Components > Analysis Schemas), click the Add Resource icon and click on Other > OLAP Schema.
- Click on Browse to specify your OLAP Schema's path. Then do Next.
- Give a Name and Label to your OLAP schema.
- Click on Save. Your OLAP Schema has been uploaded in the Repository.
Analysis Connection
- Select the Analysis Connections folder (Analysis Components > Analysis Connections), click the Add Resource icon and click on Other > Analysis Client Connection.
- Select Mondrian Connection type then do Next.
- Give a Name and Label to your connection then do Next.
- In From the Repository, select mySchema then do Next.
- This page shows the selected schema's informations. Do Next.
- In From the Repository, select FoodMartDataSource then do Next.
- Select None then do Next.
- Click on Save.
- Your Analysis Connection is created.
Analysis View
- Select the Analysis Views folder (Analysis Components > Analysis Views), click the Add Resource icon and click on Other > Analysis View.
- Give a Name and Label to your view then do Next.
- Select Mondrian Connection type then do Next.
- In OLAP Client Connection from Content Repository, select myConnection then do Next.
Write the following MDX query then do Next.
SELECT { [Measures].[product number], [Measures].[class number] } ON COLUMNS, { [Product].children } ON ROWS FROM Products
- Click on Save.
- Your Analysis View is created.
See also...
Log in or register to post comments