Mysteries of Crystal Reports. Multi-Pass Model



Similar documents
2. Building Cross-Tabs in Your Reports Create a Cross-Tab Create a Specified Group Order Filter Cross-Tab by Group Keep Groups Together

SAP Business Objects XIR3.0/3.1, BI 4.0 & 4.1 Course Content

Crystal Reports Level 2

CrysDev: A Developer s Guide to Integrating Crystal Reports

How To Learn To Write A Report In A Database On A Microsoft Powerbook

Crystal Reports. Overview. Contents. Advanced Reporting Techniques using Arrays

9 Calculated Members and Embedded Summaries

Crystal Reports Form Letters Replace database exports and Word mail merges with Crystal's powerful form letter capabilities.

BIA and BO integration other performance management options Crystal Reports Basic: Fundamentals of Report Design

Business Objects Online training Contents SAP BUSINESS OBJECTS 4.0/XI 3.1. We provide online instructor led Business Objects Training.

RIFIS Ad Hoc Reports

How To Understand The Error Codes On A Crystal Reports Print Engine

Monthly Payroll to Finance Reconciliation Report: Access and Instructions

BRIO QUERY FUNCTIONALITY IN COMPARISION TO CRYSTAL REPORTS

Reporting with Pentaho. Gabriele Pozzani

Sample- for evaluation purposes only. Advanced Crystal Reports. TeachUcomp, Inc.

for Sage 100 ERP Business Insights Overview Document

Creating Pivot Tables and Diagrams with Microsoft Excel, Visio and SQL Server 2008

Using and creating Crosstabs in Crystal Reports Juri Urbainczyk

Crystal Reports Secrets. 20 Secret Shortcuts and Workarounds for Crystal Reports Designers and Developers

2. Metadata Modeling Best Practices with Cognos Framework Manager

Crystal Converter User Guide

How to get the data you want from Crystal Reports. Eric Drap

BI 4 : Training for the Transition

DataPA OpenAnalytics End User Training

The Faith Hall of Fame: Everyday People

Lesson 9. Reports. 1. Create a Visual Report. Create a visual report. Customize a visual report. Create a visual report template.

Flowchart the Sales Process

João Diogo Almeida Premier Field Engineer Microsoft Corporation

Crystal Reports Designer

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Overview What is a PivotTable? Benefits

ECDL / ICDL Project Planning Syllabus Version 1.0

Making confident decisions with the full spectrum of analysis capabilities

A Learning Paths Whitepaper. Rapid Onboarding 3 Keys to Success

Seagate Crystal Reports Designer

Reporting and Analysis with SAP BusinessObjects

DATA VALIDATION and CONDITIONAL FORMATTING

Click to edit Master text styles. FA Web Ad Hoc Query. Second level. Third level. Fourth level Fifth level. Training Material.

TheFinancialEdge. Reports Guide for General Ledger

About PivotTable reports

NN Avaya Aura Contact Center Performance Management

BUS Business Computer Lab Course Outline Fall Term 2015 Section 001 Wednesday, 11:30-12:45, ED531

Sparta Academy. TrackWise Training Classes for IT and QA Professionals. Courses include:

SAS VISUAL ANALYTICS AN OVERVIEW OF POWERFUL DISCOVERY, ANALYSIS AND REPORTING

Business Objects XI/R3.1 Corporate Training

Ingo Hilgefort Advanced Data Visualization with SAP BusinessObjects Design Studio Session # 2686

How much time do you waste every week trying to prepare reports for

Reporting Manual. Prepared by. NUIT Support Center Northwestern University

Accessing and using ClientLine

Crystal Reports Designer Version 10

Universe Best Practices Session Code: 806

PRODUCTIVITY PACK FOR PIVOTAL CRM

Basic Data Mining NOTES. Getting Started- (make sure you are logged in to the web version of Skyward)

Creating an Enterprise Reporting Bus with SAP BusinessObjects

SAP BO 4.1 COURSE CONTENT

PRODUCTIVITY PACK FOR PIVOTAL CRM

First Nation Membership Database. Sample Screens

Collaborate on documents

Quiz 4 Solutions EECS 211: FUNDAMENTALS OF COMPUTER PROGRAMMING II. 1 Q u i z 4 S o l u t i o n s

Sophos Reporting Interface Creating Reports using Crystal Reports 2008

Using Microsoft Excel to Manage and Analyze Data: Some Tips

Intellect Platform - Parent-Child relationship Basic Expense Management System - A103

This tutorial covers the key concepts of SAP Crystal Reports and how you can use it to generate professional reports.

BusinessObjects Enterprise InfoView User's Guide

How to Use New Relic Custom Dashboards & Why You d Want To

<no narration for this slide>

ECDL / ICDL Project Planning Project Management Software Level 2. Syllabus Version 1.0 (UK)

Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA

Computer Training Centre University College Cork. Excel 2013 Pivot Tables

Phone: Fax: East Millbrook Road, Suite 380 Raleigh, NC 27609

Turning your Warehouse Data into Business Intelligence: Reporting Trends and Visibility Michael Armanious; Vice President Sales and Marketing Datex,

Course duration: 45 Hrs Class duration: 1-1.5hrs

Store & Share Quick Start

THE TOP TEN TIPS FOR USING QUALTRICS AT BYU

COGNOS Query Studio Ad Hoc Reporting

Google Drive: Access and organize your files

Cognos 8 Best Practices

Database Applications Microsoft Access

COMMERCE. Authored by Michael Mendlowitz PAYMENT SYSTEMS

CHAPTER 6: ANALYZE MICROSOFT DYNAMICS NAV 5.0 DATA IN MICROSOFT EXCEL

Embedding Customized Data Visualization and Analysis

No Stress Tech Guide To Crystal Reports XI: For Beginners. By Dr. Indera E. Murphy

How To Create A Report In Excel

Sales Performance Management Using Salesforce.com and Tableau 8 Desktop Professional & Server

Oracle ERP Cloud Period Close Procedures O R A C L E W H I T E P A P E R J U N E

Crystal Reports JD Edwards EnterpriseOne and World

Frequently Asked Questions

WHO STEPS Surveillance Support Materials. STEPS Epi Info Training Guide

Chapter 9 Computer Scheduling Projects should be scheduled one byte at a time

Alliance Payroll Services, Inc. Millennium Report Writer

Transcription:

Mysteries of Crystal Reports Multi-Pass Model

Agenda Purpose Defining the Multi-Pass Stepping in it Lassoing the Dragon Examples Best Practices Conclusion Questions

Purpose Intended for anyone who uses or has considered using Crystal reports for any version including the new one(s). Why do I care again how Crystal does things? Helps us understand why the tool behaves the way it does and what we can do to take advantage/avoid issues with it. Why did they make the tool so complex? But I don t use Crystal

Defining the Multi-Pass The Multi-Pass model is how Crystal reports calculates all variables, formulas and displays information on your report. Has a considerable impact on performance. Can influence results. Sub-Reports, running totals, shared/global variables are all impacted sometimes in unexpected ways! Basically it is the path and methodology that the tool uses to create reports. Best diagram is a flow chart but this can be confusing as there is a path on the document as well, top to bottom, one section at a time, left to right!

Defining the Multi-Pass

Defining the Multi-Pass

Stepping In It Summary <> Running total problem Typically caused by top n sort or group sort. Manual running totals. Sub-reports not totaling correctly. Formulas with variables not working correctly. Array loading issues. Page N/M slows down my report by how much?!?!?

Lassoing the Dragon Special Functions WhilePrintingRecords Often used as a panacea for all formulas WhileReadingRecords Not used often BeforeReadingRecords Not used often EvaluateAfter(x) Decide what functions/summaries you will use based on your final report usage Avoid summary functions if there is any doubt! Watch out for surprises with sub-report pass through values Know your enemy!

Examples Sum / Running Total Differences Caused by Top N (Group Sort) Loading Arrays Declarations and redims must be done WhilePrintingRecords Note that we can load arrays dynamically due to this model! So it s not all that bad. Subreport Processing Subreports are always evaluated in pass 2, ensure all other formulas using them do too! Manual Running Totals Oops, when do they reset again?

Best Practices Avoid the Page N/M (unless you are using Crystal for Enterprise and maybe everyone else in the next version?) Add WhilePrintingRecords to all formulas with variables? Avoid using summary functions if you have subreports, variables or anything that might have pass issues To be forewarned is to be forearmed!

Conclusion Each report should be reviewed for overall pass logic issues. All formulas with variables should be reviewed considering pass location. Beyond the actual pass process, the location in sections also affects report behavior. Don t overthink the pass model, just don t forget about it either!

Questions 12

Defining the Multi-Pass (Help File) Pre-Pass #1 When previewing a report, the first elements to be evaluated are "constant" formulas. Constant formulas are those that have a constant value for the entire report. They do not change from record to record. For example, 100* 30 would be a constant formula. Constant formulas are evaluated at the beginning of the print generation process and are never evaluated again. This process is known as "BeforeReadingRecords." If you were to place a constant formula field (i.e., 100*30) in the Details section, the result would be 3000 for each record displayed. Pass #1 After the "BeforeReadingRecords" process has taken place, Crystal Reports begins reading the database records. During the record reading process, the following will occur: Record retrieval. Where possible record selection and sorting are pushed down to the database in this step. Evaluation of recurring formulas. These formulas are those that contain database fields but do not contain references to subtotals or summary information. This evaluation time is known as "WhileReadingRecords." Formulas that contain references to subtotals or summary information are processed in the second pass. Application of the record selection locally. If the record selection is too complex to be pushed down to the database, it is applied by Crystal Reports in this step. Application of the saved data record selection formulas. When records return to the report, they are further filtered through any existing saved data formulas. Sorting, grouping, and totaling. In this step, Crystal Reports sorts the records, separates them into groups, and then calculates the subtotals and summaries needed for each group. Cross-Tab, chart, and map generation. Only Cross-Tabs, charts, and maps that are based entirely on database fields and recurring formulas are generated in Pass 1. If these objects include running totals and/or PrintTime formulas, they are generated in Pass 2. Storage of saved data. After the totaling process is complete, all of the records and totals are stored in memory and to temporary files. Crystal Reports does not read the database again, but instead uses this saved data during all subsequent processing.

Defining the Multi-Pass (Help File) Pre-Pass #2 During Pre-Pass 2, Crystal Reports orders the groups in the report for Top/Bottom N or Hierarchical Grouping. The records are not read in this process, instead Crystal Reports only looks at group instances from Pass 1, and takes the Top N as appropriate, or orders the groups based on the Hierarchical Grouping settings specified. Pass #2 Crystal Reports enters the second pass through the data to format pages. The pages are formatted on demand. This means that Crystal Reports will not format a page until it is requested by the user, or until it is required for the total page count in Pass 3. During page formatting, Crystal Reports does the following: Group selection formulas. Running totals. Calculation of formulas marked "WhilePrinting Records." These are formulas that contain references to subtotals or summary information, also known as "PrintTime" formulas. This evaluation time is known as "WhilePrinting Records." Cross-Tabs, charts, and maps. Cross-Tabs, charts, and maps that include running totals and/or PrintTime formulas, and charts that are based on Cross-Tabs are generated in Pass 2. OLAP grids. Subreports. Generation of Pages on Demand. Note: Subtotals, grand totals, and summaries may appear to be incorrect if the report has a group selection formula. This occurs because the grand totals and summaries are calculated during Pass 1, but the group selection formula filters the data again in Pass 2. Running total fields can be used instead of summaries to total data in reports with a group selection formula. You can use on-demand subreports to ensure that your main report remains a single-pass report. With on-demand subreports, Crystal Reports must still make a second pass through the data; however, this second pass does not begin until you drill down on the subreport. Consequently, you can increase the performance of reports that contain subreports by using on-demand subreports. Pass #3 In the third, and final pass, the total page count is determined. This applies to reports that use the total page count, or Page N of M special fields.