Jump to content
We've recently updated our Privacy Statement, available here ×
  • Jaspersoft OLAP - Creating an Analysis View


    abresci
    • Product: JasperReports® Server

    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

    1. Log into JasperReports Server. On the Home page, click on View > Repository.
    2. In the Repository manager, select the Analysis Schemas folder (Analysis Components > Analysis Schemas), click the Add Resource icon and click on Other > OLAP Schema.

      Creating_Analytic_View_1.JPG.e45269d1d14f5aa7103bb75084da25b4.JPG

    3. Click on Browse to specify your OLAP Schema's path. Then do Next.

      Creating_Analytic_View_2.JPG.a8682a59a41782e93df29aadc1fd9f5e.JPG

    4. Give a Name and Label to your OLAP schema.

      Creating_Analytic_View_3.JPG.a057be67fa3e4647c77eb138e44c8282.JPG

    5. Click on Save. Your OLAP Schema has been uploaded in the Repository.

      Creating_Analytic_View_4.JPG.03d462d533eab98ce9143c712708055b.JPG

    Analysis Connection

    1. Select the Analysis Connections folder (Analysis Components > Analysis Connections), click the Add Resource icon and click on Other > Analysis Client Connection.

      Creating_Analytic_View_5.JPG.6b7b40d46ec74ad592fde180779027b1.JPG

    2. Select Mondrian Connection type then do Next.

      Creating_Analytic_View_6.JPG.a8c27e73349a9df089ae4001e3966bf5.JPG

    3. Give a Name and Label to your connection then do Next.

      Creating_Analytic_View_7.JPG.ec6b09fb92551500aa899df97c7bf5d7.JPG

    4. In From the Repository, select mySchema then do Next.

      Creating_Analytic_View_8.JPG.d8039d1987e03c6b32dfcaf9156bc66e.JPG

    5. This page shows the selected schema's informations. Do Next.

      Creating_Analytic_View_9.JPG.a29a727915fd284d3c12e20fb2597a0e.JPG

    6. In From the Repository, select FoodMartDataSource then do Next.

      Creating_Analytic_View_10.JPG.3a4540f9ffe5f5ddd59e41568240e5ba.JPG

    7. Select None then do Next.

      Creating_Analytic_View_11.JPG.6f92ecd272c9c31f52f742be1cf5bec4.JPG

    8. Click on Save.

      Creating_Analytic_View_12.JPG.7d7f84cc1dd22afd0ecb206d4a9639d2.JPG

    9. Your Analysis Connection is created.

      Creating_Analytic_View_13.JPG.a4de1ac8bb851216c64c5a8c6aad4b51.JPG

    Analysis View

    1. Select the Analysis Views folder (Analysis Components > Analysis Views), click the Add Resource icon and click on Other > Analysis View.

      Creating_Analytic_View_14.JPG.20aca99e951a9b183cc9d52ccec9bbd1.JPG

    2. Give a Name and Label to your view then do Next.

      Creating_Analytic_View_15.JPG.d3fb06c317a5a2744b48f6846ac6c0da.JPG

    3. Select Mondrian Connection type then do Next.

      Creating_Analytic_View_16.JPG.1cedb258ed51da518b78ae80faa6bb44.JPG

    4. In OLAP Client Connection from Content Repository, select myConnection then do Next.

      Creating_Analytic_View_17.JPG.af27e78f9f16de99a1a1d6e41d5a9f4c.JPG

    5. Write the following MDX query then do Next.

      SELECT {
            [Measures].[product number],
            [Measures].[class number]
      }  ON COLUMNS,
      {
            [Product].children
      }  ON ROWS
      FROM Products
      
    6. Click on Save.

      Creating_Analytic_View_19.JPG.d68e3f717cf8bf5e488e777e14ec173f.JPG

    7. Your Analysis View is created.

      Creating_Analytic_View_20.JPG.e42761629a96b43463cdbcd2352535c7.JPG

      Creating_Analytic_View_21.JPG.80690cdc6ba38a12960e3b444fa7d058.JPG


    See also...


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...