SlideShare una empresa de Scribd logo
1 de 7
Descargar para leer sin conexión
BIRT Cross tabs - Advanced 
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 document is to walk you through several scenarios and describe the high level steps required to create the sample report designs. 
Following features are covered 
• 
Cross tab with time series 
• 
Cross tab with image indicator for measures 
• 
Cross tab with static rows/columns 
• 
Filters in cross tab 
• 
Sorting in cross tab 
• 
Grand totals and sub totals for rows/columns in a cross tab 
• 
Cubes based on multiple datasets 
• 
Sharing cubes using library
Business Scenario 
For a fictitious company called Classic Models Inc you are asked to create the following reports – 
Scenario A – Cross tab with time dimension 
Report that displays sales of all products in different years categorized by year, quarter and month of sale 
• 
In the row area, sort by year field in descending order. 
• 
In the column area, sort product Line by column grand total in descending order 
• 
Show only the product Line for which the sales > 10,000 in Jan 2005 
Below is the desired report output (productSalesByYear.rptdesign)
Create a shared Data Cube in report design library 
Create a data cube with the following structure 
Dimension ( Group Hierarchy ) 
Group Level 
Description 
customerRegion 
Country-> State -> City- >CustomerNum 
Geographical hierarchy 
orderDate 
Year -> Quarter -> Month 
Time period when the orders were made 
product 
ProductLine -> ProductName 
Product hierarchy 
Measure 
Description 
ordertotal 
Order Total 
quantityordered 
Quantity ordered 
1) 
Create a new library design file 
2) 
Create a new data source based on ‘classic Model Sample Database’ 
3) 
Create the following data sets dsProducts, dsOrders and dsCustomers 
4) 
Create a new data cube using the cube builder; define ‘dsOrders’ as the primary dataset and following cube structure. Use the ‘Link Groups’ section to define the join relationships between the datasets
5) Publish the library to the resource folder, by clicking on Select “File” -> “Place Library in Resource folder” 
Define the Cross tab Item 
1) 
Create a new report design file “productSalesByYear.rptdesign” 
2) 
Select the Library Explorer view, and drag and drop the cube ‘Customer Cube’ from the Library Explorer view to the report design outline view 
3) 
Create a cross tab report item by dragging and dropping the cross tab item to the layout editor 
4) 
Expand the ‘Customer add ‘product’ group hierarchy to the cross tab column area, ‘orderDate’ group hierarchy to the row area and ‘OrderTotal’ to the detail area. Use the ‘Show/Hide Group levels’ dialog to show all the required levels. 
5) 
Define the sort criteria to show group level ‘Year’ in descending order. The sort criteria can be defined using the cross tab property editor. 
6) 
Define the sort criteria on ‘product line’ level, to sort grand total in descending order 
7) 
Define the filter criteria to show only those ‘product line’ which have ‘order total’ > 100,000 in year =2005. The filter condition can be defined using the filter tab in the cross tab property editor.
Scenario B – Cross tab with image to show the measure value 
Report that displays image1 if the sales > 100000 or show Image2 if the sales <= 100000 for all products in different years 
Below is the desired report output (productSalesByYearImageIndicator.rptdesign) 
Steps 
The data cube “Customer Cube” defined in Scenario A is used here too. 
1) 
Drag and drop the cross tab report item from palette to the layout editor 
2) 
Expand the “Customer Cube” data cube and drag and drop the following 
• 
OrderDate group hierarchy to the row area, 
• 
Product group hierarchy to the column area 
• 
OrderTotal measure to the Summary fields area 
Also use the “Show/Hide levels” dialog to show the required group levels 
3) 
Drag and drop an image item from palette to the summary area in layout view 
• 
Select the URI option 
• 
Specify the following expression 
if ( data["ORDERTOTAL"] > 100000 ) 
"move_up.gif" 
else 
"move_down.gif"
4) Use the ‘Total’ dialog to show row and column grand total
Scenario C – Static Cross tab 
Report that displays fixed number of columns (static). The customers are categorized by credit ranking and the number of customer for different countries is shown. 
Below is the desired report output ( StaticCustomerCreditRanking.rptdesign ) 
Steps 
1) 
Create a new BIRT report design 
2) 
Create a new dataset ‘dsCustomers’ 
3) 
Define a new data cube with ‘dsCustomers’ as the primary dataset and following dimensions 
a. 
cusomterRegion = Country ->State->City 
b. 
customerCreditRanking= creditLimt, 
i. 
The creditLimit is defined as static level with following four fixed categories A( No risk), B( Average) C( High Risk), N ( New) 
4) 
Create a cross tab report item by dragging and dropping the cross tab item to the layout editor 
5) 
Add “customerRegion” group hiearchy to the row area, “customerCreditRanking” hierarchy to the column area and ‘CustomerNumber’ measure to the detail area 
6) 
Preview the report design

Más contenido relacionado

La actualidad más candente

Cassandra background-and-architecture
Cassandra background-and-architectureCassandra background-and-architecture
Cassandra background-and-architecture
Markus Klems
 
Introducing the eDB360 Tool
Introducing the eDB360 ToolIntroducing the eDB360 Tool
Introducing the eDB360 Tool
Carlos Sierra
 
MongoDB Schema Design (Richard Kreuter's Mongo Berlin preso)
MongoDB Schema Design (Richard Kreuter's Mongo Berlin preso)MongoDB Schema Design (Richard Kreuter's Mongo Berlin preso)
MongoDB Schema Design (Richard Kreuter's Mongo Berlin preso)
MongoDB
 
Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360
Carlos Sierra
 

La actualidad más candente (20)

State of the Dolphin - May 2022
State of the Dolphin - May 2022State of the Dolphin - May 2022
State of the Dolphin - May 2022
 
Druid deep dive
Druid deep diveDruid deep dive
Druid deep dive
 
Elasticsearch - under the hood
Elasticsearch - under the hoodElasticsearch - under the hood
Elasticsearch - under the hood
 
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
 
An Enterprise Architect's View of MongoDB
An Enterprise Architect's View of MongoDBAn Enterprise Architect's View of MongoDB
An Enterprise Architect's View of MongoDB
 
Cassandra background-and-architecture
Cassandra background-and-architectureCassandra background-and-architecture
Cassandra background-and-architecture
 
Oracle Database 12c with RAC High Availability Best Practices
Oracle Database 12c with RAC High Availability Best PracticesOracle Database 12c with RAC High Availability Best Practices
Oracle Database 12c with RAC High Availability Best Practices
 
Introducing the eDB360 Tool
Introducing the eDB360 ToolIntroducing the eDB360 Tool
Introducing the eDB360 Tool
 
Percona Live 2022 - MySQL Architectures
Percona Live 2022 - MySQL ArchitecturesPercona Live 2022 - MySQL Architectures
Percona Live 2022 - MySQL Architectures
 
Improving WordPress Performance with Xdebug and PHP Profiling
Improving WordPress Performance with Xdebug and PHP ProfilingImproving WordPress Performance with Xdebug and PHP Profiling
Improving WordPress Performance with Xdebug and PHP Profiling
 
MongoDB Schema Design (Richard Kreuter's Mongo Berlin preso)
MongoDB Schema Design (Richard Kreuter's Mongo Berlin preso)MongoDB Schema Design (Richard Kreuter's Mongo Berlin preso)
MongoDB Schema Design (Richard Kreuter's Mongo Berlin preso)
 
Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360
 
Building Software Systems at Google and Lessons Learned
Building Software Systems at Google and Lessons LearnedBuilding Software Systems at Google and Lessons Learned
Building Software Systems at Google and Lessons Learned
 
Log Structured Merge Tree
Log Structured Merge TreeLog Structured Merge Tree
Log Structured Merge Tree
 
Relational Database Examples
Relational Database ExamplesRelational Database Examples
Relational Database Examples
 
Conhecendo Apache Cassandra @Movile
Conhecendo Apache Cassandra  @MovileConhecendo Apache Cassandra  @Movile
Conhecendo Apache Cassandra @Movile
 
Overview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdfOverview of Databases and Data Modelling-1.pdf
Overview of Databases and Data Modelling-1.pdf
 
Improving Apache Spark's Reliability with DataSourceV2
Improving Apache Spark's Reliability with DataSourceV2Improving Apache Spark's Reliability with DataSourceV2
Improving Apache Spark's Reliability with DataSourceV2
 
Unit 3 MongDB
Unit 3 MongDBUnit 3 MongDB
Unit 3 MongDB
 
Understanding Query Plans and Spark UIs
Understanding Query Plans and Spark UIsUnderstanding Query Plans and Spark UIs
Understanding Query Plans and Spark UIs
 

Similar a Birt crosstabtutorialadvanced

Geo prompt dashboard
Geo prompt dashboardGeo prompt dashboard
Geo prompt dashboard
Amit Sharma
 
Excel Pivot Tables and Graphing for Auditors
Excel Pivot Tables and Graphing for AuditorsExcel Pivot Tables and Graphing for Auditors
Excel Pivot Tables and Graphing for Auditors
Jim Kaplan CIA CFE
 
Financial reporting rpd using obiee
Financial reporting rpd using obieeFinancial reporting rpd using obiee
Financial reporting rpd using obiee
Amit Sharma
 
Financial reporting rpd using obiee
Financial reporting rpd using obieeFinancial reporting rpd using obiee
Financial reporting rpd using obiee
Amit Sharma
 
Financial reporting rpd using obiee
Financial reporting rpd using obieeFinancial reporting rpd using obiee
Financial reporting rpd using obiee
Amit Sharma
 
Part 1 - Microsoft Access 2019Use Access to create a database to.docx
Part 1 - Microsoft Access 2019Use Access to create a database to.docxPart 1 - Microsoft Access 2019Use Access to create a database to.docx
Part 1 - Microsoft Access 2019Use Access to create a database to.docx
honey690131
 
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docxCIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
clarebernice
 
Counting -cycle_count_using_mobile_application
Counting  -cycle_count_using_mobile_applicationCounting  -cycle_count_using_mobile_application
Counting -cycle_count_using_mobile_application
manitenkasi
 
Obiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboardObiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboard
Amit Sharma
 
Obiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboardObiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboard
Amit Sharma
 
Obiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboardObiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboard
Amit Sharma
 

Similar a Birt crosstabtutorialadvanced (20)

Geo prompt dashboard
Geo prompt dashboardGeo prompt dashboard
Geo prompt dashboard
 
Excel Pivot Tables and Graphing for Auditors
Excel Pivot Tables and Graphing for AuditorsExcel Pivot Tables and Graphing for Auditors
Excel Pivot Tables and Graphing for Auditors
 
Database (IP)
Database (IP)Database (IP)
Database (IP)
 
Mr20 enus 08-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...
Mr20 enus 08-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...Mr20 enus 08-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...
Mr20 enus 08-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...
 
Financial reporting rpd using obiee
Financial reporting rpd using obieeFinancial reporting rpd using obiee
Financial reporting rpd using obiee
 
Financial reporting rpd using obiee
Financial reporting rpd using obieeFinancial reporting rpd using obiee
Financial reporting rpd using obiee
 
Financial reporting rpd using obiee
Financial reporting rpd using obieeFinancial reporting rpd using obiee
Financial reporting rpd using obiee
 
Parameters in Tableau
Parameters in TableauParameters in Tableau
Parameters in Tableau
 
Part 1 - Microsoft Access 2019Use Access to create a database to.docx
Part 1 - Microsoft Access 2019Use Access to create a database to.docxPart 1 - Microsoft Access 2019Use Access to create a database to.docx
Part 1 - Microsoft Access 2019Use Access to create a database to.docx
 
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docxCIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
 
Visual binning
Visual binningVisual binning
Visual binning
 
It ready dw_day4_rev00
It ready dw_day4_rev00It ready dw_day4_rev00
It ready dw_day4_rev00
 
Bar chart Creation
Bar chart CreationBar chart Creation
Bar chart Creation
 
Counting -cycle_count_using_mobile_application
Counting  -cycle_count_using_mobile_applicationCounting  -cycle_count_using_mobile_application
Counting -cycle_count_using_mobile_application
 
Visualizing Data using Tableau
Visualizing Data using TableauVisualizing Data using Tableau
Visualizing Data using Tableau
 
Obiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboardObiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboard
 
Obiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboardObiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboard
 
Obiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboardObiee11g building-brand-analysis-dashboard
Obiee11g building-brand-analysis-dashboard
 
Tableau 6.pptx
Tableau 6.pptxTableau 6.pptx
Tableau 6.pptx
 
Preparing for BIT – IT2301 Database Management Systems 2001g
Preparing for BIT – IT2301 Database Management Systems 2001gPreparing for BIT – IT2301 Database Management Systems 2001g
Preparing for BIT – IT2301 Database Management Systems 2001g
 

Último

Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
amitlee9823
 
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
gajnagarg
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
nirzagarg
 
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
gajnagarg
 
Vip Mumbai Call Girls Bandra West Call On 9920725232 With Body to body massag...
Vip Mumbai Call Girls Bandra West Call On 9920725232 With Body to body massag...Vip Mumbai Call Girls Bandra West Call On 9920725232 With Body to body massag...
Vip Mumbai Call Girls Bandra West Call On 9920725232 With Body to body massag...
amitlee9823
 
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
amitlee9823
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
mark11275
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
amitlee9823
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 

Último (20)

💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
 
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Jigani Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Etawah Escorts ☎️9352988975 Two shot with one girl (...
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
 
8377087607, Door Step Call Girls In Majnu Ka Tilla (Delhi) 24/7 Available
8377087607, Door Step Call Girls In Majnu Ka Tilla (Delhi) 24/7 Available8377087607, Door Step Call Girls In Majnu Ka Tilla (Delhi) 24/7 Available
8377087607, Door Step Call Girls In Majnu Ka Tilla (Delhi) 24/7 Available
 
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRLHingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
 
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard  ...
Anamika Escorts Service Darbhanga ❣️ 7014168258 ❣️ High Cost Unlimited Hard ...
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
 
Vip Mumbai Call Girls Bandra West Call On 9920725232 With Body to body massag...
Vip Mumbai Call Girls Bandra West Call On 9920725232 With Body to body massag...Vip Mumbai Call Girls Bandra West Call On 9920725232 With Body to body massag...
Vip Mumbai Call Girls Bandra West Call On 9920725232 With Body to body massag...
 
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men  🔝dehradun🔝   Escor...
➥🔝 7737669865 🔝▻ dehradun Call-girls in Women Seeking Men 🔝dehradun🔝 Escor...
 
How to Build a Simple Shopify Website
How to Build a Simple Shopify WebsiteHow to Build a Simple Shopify Website
How to Build a Simple Shopify Website
 
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
RT Nagar Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 

Birt crosstabtutorialadvanced

  • 1. BIRT Cross tabs - Advanced 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 document is to walk you through several scenarios and describe the high level steps required to create the sample report designs. Following features are covered • Cross tab with time series • Cross tab with image indicator for measures • Cross tab with static rows/columns • Filters in cross tab • Sorting in cross tab • Grand totals and sub totals for rows/columns in a cross tab • Cubes based on multiple datasets • Sharing cubes using library
  • 2. Business Scenario For a fictitious company called Classic Models Inc you are asked to create the following reports – Scenario A – Cross tab with time dimension Report that displays sales of all products in different years categorized by year, quarter and month of sale • In the row area, sort by year field in descending order. • In the column area, sort product Line by column grand total in descending order • Show only the product Line for which the sales > 10,000 in Jan 2005 Below is the desired report output (productSalesByYear.rptdesign)
  • 3. Create a shared Data Cube in report design library Create a data cube with the following structure Dimension ( Group Hierarchy ) Group Level Description customerRegion Country-> State -> City- >CustomerNum Geographical hierarchy orderDate Year -> Quarter -> Month Time period when the orders were made product ProductLine -> ProductName Product hierarchy Measure Description ordertotal Order Total quantityordered Quantity ordered 1) Create a new library design file 2) Create a new data source based on ‘classic Model Sample Database’ 3) Create the following data sets dsProducts, dsOrders and dsCustomers 4) Create a new data cube using the cube builder; define ‘dsOrders’ as the primary dataset and following cube structure. Use the ‘Link Groups’ section to define the join relationships between the datasets
  • 4. 5) Publish the library to the resource folder, by clicking on Select “File” -> “Place Library in Resource folder” Define the Cross tab Item 1) Create a new report design file “productSalesByYear.rptdesign” 2) Select the Library Explorer view, and drag and drop the cube ‘Customer Cube’ from the Library Explorer view to the report design outline view 3) Create a cross tab report item by dragging and dropping the cross tab item to the layout editor 4) Expand the ‘Customer add ‘product’ group hierarchy to the cross tab column area, ‘orderDate’ group hierarchy to the row area and ‘OrderTotal’ to the detail area. Use the ‘Show/Hide Group levels’ dialog to show all the required levels. 5) Define the sort criteria to show group level ‘Year’ in descending order. The sort criteria can be defined using the cross tab property editor. 6) Define the sort criteria on ‘product line’ level, to sort grand total in descending order 7) Define the filter criteria to show only those ‘product line’ which have ‘order total’ > 100,000 in year =2005. The filter condition can be defined using the filter tab in the cross tab property editor.
  • 5. Scenario B – Cross tab with image to show the measure value Report that displays image1 if the sales > 100000 or show Image2 if the sales <= 100000 for all products in different years Below is the desired report output (productSalesByYearImageIndicator.rptdesign) Steps The data cube “Customer Cube” defined in Scenario A is used here too. 1) Drag and drop the cross tab report item from palette to the layout editor 2) Expand the “Customer Cube” data cube and drag and drop the following • OrderDate group hierarchy to the row area, • Product group hierarchy to the column area • OrderTotal measure to the Summary fields area Also use the “Show/Hide levels” dialog to show the required group levels 3) Drag and drop an image item from palette to the summary area in layout view • Select the URI option • Specify the following expression if ( data["ORDERTOTAL"] > 100000 ) "move_up.gif" else "move_down.gif"
  • 6. 4) Use the ‘Total’ dialog to show row and column grand total
  • 7. Scenario C – Static Cross tab Report that displays fixed number of columns (static). The customers are categorized by credit ranking and the number of customer for different countries is shown. Below is the desired report output ( StaticCustomerCreditRanking.rptdesign ) Steps 1) Create a new BIRT report design 2) Create a new dataset ‘dsCustomers’ 3) Define a new data cube with ‘dsCustomers’ as the primary dataset and following dimensions a. cusomterRegion = Country ->State->City b. customerCreditRanking= creditLimt, i. The creditLimit is defined as static level with following four fixed categories A( No risk), B( Average) C( High Risk), N ( New) 4) Create a cross tab report item by dragging and dropping the cross tab item to the layout editor 5) Add “customerRegion” group hiearchy to the row area, “customerCreditRanking” hierarchy to the column area and ‘CustomerNumber’ measure to the detail area 6) Preview the report design