0% found this document useful (0 votes)
374 views4 pages

Birt Simple Crosstab

This document provides steps to create a simple cross tab report in BIRT that displays sales of products by region. The report will use a data cube based on a dataset from the Classic Models sample database. The cross tab will show product sales totals categorized by country, state, city and customer for evaluation of sales across geographical regions. The steps outline adding dimensions and measures to the cross tab from the data cube, applying filters and sorting, and modifying styles.

Uploaded by

redro
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
374 views4 pages

Birt Simple Crosstab

This document provides steps to create a simple cross tab report in BIRT that displays sales of products by region. The report will use a data cube based on a dataset from the Classic Models sample database. The cross tab will show product sales totals categorized by country, state, city and customer for evaluation of sales across geographical regions. The steps outline adding dimensions and measures to the cross tab from the data cube, applying filters and sorting, and modifying styles.

Uploaded by

redro
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

BIRT Cross tabs - Simple

Introduction
A cross tab displays the relation between two or more variables in a matrix format. A cross tab
report item is based on a multi dimensional data cube, which is a collection of dimensions
(groups) and measures. A BIRT data cube is based on one or more BIRT datasets.

The goal of this tutorial is to describe at a high level the steps required to create a simple BIRT
report design with cross tab report item (productSalesByRegion.rptdesign). The following
features are covered
• BIRT Data Cube based on a single data set
• Cross tab based on a cube
• Filters in cross tab
• Sorting in cross tab
• Grand totals for rows/columns in cross tab
Business Scenario
For a fictitious company called Classic Models Inc you are asked to create the following report
• A report that displays sales of all products in different regions categorized by country, state
and city of sale.

Below is the desired report output

The sample report design will use the “Classic models” sample database that is shipped along
with the BIRT Report Designer
Steps to create the sample report design productSalesByRegion.rptdesign in BIRT
Designer

1) Create a new report design file “productSalesByRegion.rptdesign”


2) Create a new data source based on ‘classic Model Sample Database’
3) Create a new dataset called ‘dsSales’
4) Create a cross tab report item by dragging and dropping to the layout editor
5) Create a new data cube by using ‘dsSales’ as the primary dataset and following cube
structure

Dimension ( Group Hierarchy Group Level Hierarchy Description


)
CustomerRegion Country -> State -> City -> Geographical hierarchy
CustomerNum
Product ProductLine -> ProductName Product hierarchy

Measure Description
Order Total Order Total
6) Add “product” group hierarchy to the cross tab column area, “customerRegion” hierarchy
to the row area and “OrderTotal” to the detail area.
7) Use the ‘Show/Hide’ Group levels dialog to show all required levels.
8) Define the filter criteria to show all product line except “Classic Cars”. The filter condition
can be defined using the filter tab in the cross tab property editor.
9) Define the sort criteria to show group level ‘Country’ in descending order. The sort
definition can be defined using the cross tab property editor.
10) Show the column and row grand total by using the ‘Total’ dialog. The total dialog is
available on the Group left click menu on the layout.
11) Modify the predefined style ‘crosstab-detail’ and ‘cross-header’ to the required font and
background color.
12) Preview the report design.

You might also like