Crystal Reports. Overview. Contents. Displaying PercentOfCount and/or PercentOfDistinctCount summaries in a cross-tab

Similar documents
Crystal Reports. Overview. Contents. Charting on Print-Time Formulas

Crystal Reports 7. Overview. Contents. Parameter Fields

Crystal Reports. Overview. Contents. Cross-Tab Capabilities & Limitations in Crystal Reports (CR) 6.x

Crystal Reports Compiled by Christopher Dairion

Crystal Reports 7. Overview. Contents. Evaluation Times and the Two-Pass Report Processing Model

How are the customer records from all the other countries grouped in SAP Crystal Reports? Please choose the correct answer.

Crystal Reports Migration Guide. Problems and Solutions

Seagate Crystal Reports 5 and 6

TRAINING GUIDE. Advanced Crystal 3

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

Crystal Reports. Overview. Contents. Differences between the Database menu in Crystal Reports 8.5 and 9

TRAINING GUIDE. Advanced Crystal 1

Creating a Crosstab Query in Design View

Index COPYRIGHTED MATERIAL. Symbols and Numerics

Crystal Reports. Overview. Contents. Custom Functions

Chapter 3 Running Totals

New Perspectives on Microsoft Excel Module 5: Working with Excel Tables, PivotTables, and PivotCharts

Crystal Report Manual READ ONLINE

Microsoft Dynamics GP. Extender User s Guide Release 9.0

(Type your answer in radians. Round to the nearest hundredth as needed.)

Report Composer Version 6.0. What's New

Mission Statement The Monroe County Library System enriches the equality of life for all residents of the

Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. Microsoft Excel 2013 Enhanced

TRAINING GUIDE. Intermediate Crystal 2

As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action

Performance Management

Date Tester Pass/Fail Notes. Step Action Input Expected Results 1. From the Financials menu, click the Purchasing link.

Excel Level Three. You can also go the Format, Column, Width menu to enter the new width of the column.

QUERY USER MANUAL Chapter 7

Microsoft Dynamics GP. Extender User s Guide

Introduction. Inserting and Modifying Tables. Word 2010 Working with Tables. To Insert a Blank Table: Page 1

THE EXCEL ENVIRONMENT... 1 EDITING...

COMPUTER TRAINING CENTER

Crystal Reports 9 OLAP Reports

Step 1: Create a totals query to show the total cost price and total sale price of the wine for each supplier.

Student Manual. Cognos Analytics

Creating and Adding Formula in Global Level. Creating and Adding Formula in Inline Table

Pivot Tables, Lookup Tables and Scenarios

Transform data - Compute Variables

Chapter 13 Creating a Workbook

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum)

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

CONVERSION GUIDE Financial Statement Files from CSA to Accounting CS

Survey Design, Distribution & Analysis Software. professional quest. Whitepaper Extracting Data into Microsoft Excel

Application of Skills: Microsoft Excel 2013 Tutorial

Crystal Report 2008 Intermediate. Jeff Hutchinson Excel Networks. For Evaluation Only. Do Not Duplicate.

Drill Down. 1. Import the file sample-sales-data.xls into Microsoft Power BI, and then create a Quantity by Year stacked column chart.

Creating Database Reports

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum)

Advanced Crystal Reporting Database Linking, Subreports and Historical Tables. Millie Ferrare, QA Director April 2017

Changing Worksheet Views

Consolidate and Summarizing Data from Multiple Worksheets

USING MICROSOFT EXCEL 2016 Guided Project 4-3

Crystal Reports. Overview. Contents. Printer Driver Dependency: How to Design Reports that Print Consistently in Different PC Environments

Navigate to Cognos Cognos Analytics supports all browsers with the exception of Microsoft Edge.

Introduction to Microsoft Excel 2010 Quick Reference Sheet

CS1100: Excel Lab 1. Problem 1 (25 Points) Filtering and Summarizing Data

Complete Quick Reference Summary

Excel 101. DJ Wetzel Director of Financial Aid Greenville Technical College

Chapter 3 Microsoft Office Excel

Crystal Reports 9 Templates

Introducing Gupta Report Builder

CONVERSION GUIDE Financial Statement Files from CSA to Workpapers CS

Opening a Data File in SPSS. Defining Variables in SPSS

IT2.weebly.com Applied ICT 9713

Create CSV for Asset Import

EXCEL 2007 GETTING STARTED

INSERT SUBTOTALS Database Exercise Sort the Data Department Department Data Tab Sort and Filter Group

How to insert table in Excel?

Chapter 2 The Design Window

Unit 3: Local Fields

Working with Microsoft Excel. Touring Excel. Selecting Data. Presented by: Brian Pearson

SyncFirst Standard. Quick Start Guide User Guide Step-By-Step Guide

Creating a Spreadsheet by Using Excel

CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 2 TEXT FORMATTING

Crystal Reports. Overview. Contents. Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic

TRAINING GUIDE. Beyond the Basic Crystal

Crystal Reports. Contents. Guidelines to Formatting Consistent Reports

Data Grid Utilities - Searching Data Grids

SAP Crystal Reports for Enterprise User Guide SAP Crystal Reports for Enterprise

QCTools. an Excel 97 AddIn. William F Lyle Copyright 1999

Basics: How to Calculate Standard Deviation in Excel

Call: Crystal Report Course Content:35-40hours Course Outline

HKTA TANG HIN MEMORIAL SECONDARY SCHOOL SECONDARY 3 COMPUTER LITERACY. Name: ( ) Class: Date: Databases and Microsoft Access

GO! with Microsoft Access 2016 Comprehensive

Introduction to StatKey Getting Data Into StatKey

Crystal Reports XI Designer 3 Workshop

Crystal Reports XI Designer 2 Workshop

Crystal Report Parameter Default Value Current Date

Excel 2003 Tutorial II

EXCEL SKILLS. Selecting Cells: Step 1: Click and drag to select the cells you want.

Lesson 2: Formulas, Functions, and Formatting Microsoft Excel 2016 IN THIS CHAPTER, YOU WILL LEARN HOW TO

7/14/2009. Chapters Autocad Multi Line Text Tools. Multi Line Text Tool Ribbon. Multi Line Text Tool. July 14, 2009

Step 3: Type the data in to the cell

Points to Note for Upgrading of WebSAMS

Microsoft Excel 2010

Excel. Excel Options click the Microsoft Office Button. Go to Excel Options

Business Intelligence and Reporting Tools

SQL izing Crystal Reports

Elementary Statistics. Organizing Raw Data

Transcription:

Crystal Reports Displaying PercentOfCount and/or PercentOfDistinctCount summaries in a cross-tab Overview In a Crystal Reports (CR) 9 cross-tab, the summary options, PercentOfDistinctCount and PercentOfCount, do not display data correctly. Any numbers after the decimal point are rounded down to zero. This document will explain why this decimal precision issue occurs and will provide workarounds to display the data correctly. Contents INTRODUCTION... 2 WHY DO INCORRECT VALUES APPEAR?... 2 DISPLAYING PERCENTOFCOUNT/PERCENTOFDISTINCTCOUNT SUMMARIES.. 2 PercentOfDistinctCount Summaries...3 Set up the report... 3 Create a formula... 4 Create a Cross-tab... 4 PercentOfCount Summaries...4 Create a formula... 5 Create a Cross-tab... 5 CONTACTING CRYSTAL DECISIONS FOR TECHNICAL SUPPORT... 5 10/4/2002 3:24 PM Copyright 2002 Crystal Decisions, Inc. All Rights Reserved. Page 1

Introduction In CR 9, there is a limitation with displaying PercentOfCount or PercentOfDistinctCount summary values in a cross-tab. The decimal portion of the number is rounded down to zero and therefore displays what appears to be an incorrect value. This document will: explain the reason for this issue. provide a workaround to display a PercentOfDistinctCount in a crosstab with correct decimal precision. provide a workaround to display a PercentOfCount in a cross-tab with correct decimal precision. Why do incorrect values appear? This is a known issue and has been assigned track ID ADAPT00104013. Inserting a field into the Summarized Fields box of a cross-tab, and choosing to display as a PercentOfCount summary or PercentOfDistinctCount summary will display the values without decimal precision. For example, if the value should be displayed as 35.64%, the cross-tab will display the value as 35.00%. This issue has been addressed in a hot fix. The solution to fix this problem is to display zero decimal places. For example, if the value should be displayed as 35.64%, the value will instead be displayed with no decimals as 35%. Why does this solution not address the underlying problem? The reason the exact decimal precision is not fixed is because CR stores PercentOfCount and PercentOfDistinctCount summaries as integers. To display the decimal portions of the value, the data-type would need to be changed from an integer to a floating point. If such an architectural change were made to CR and released as a product update, reports created and saved using a build of CR with this update applied could become corrupted if opened using a build of CR without the update applied. This would render these reports unusable and corrupted reports would need to be recreated. Therefore, it was decided not to fix the underlying issue but to round the numbers with zero decimal places instead. There are workarounds to display the exact decimal precision in a cross-tab. Displaying PercentOfCount/PercentOfDistinctCount Summaries Both of the following examples: 10/4/2002 3:24 PM Copyright 2002 Crystal Decisions, Inc. All Rights Reserved. Page 2

use the Access sample database, Xtreme.mdb, which is installed with Crystal Reports. are based on the Customer table. have the Customer.Country field filtered to show only Australia. PercentOfDistinctCount Summaries To correctly display a PercentOfDistinctCount summary, summarize a formula field that displays the PercentOfDistinctCount rather than summarizing a database field in the cross-tab To make this formula, the report needs to be grouped on the same fields as the cross-tab s row and column fields. Note: If it is not possible to modify the grouping of the main report, the cross-tab can be displayed in a subreport, which is set up with the appropriate grouping and is only used to display the cross-tab. However, cross-tabs in subreports do not display virtual pages. If the cross-tab grows larger than the width of the page, data to the right of the page width will not be displayed. There is no workaround for this issue. For more information on Subreports refer to CR s White Paper; scr_subreports.pdf at: http://support.crystaldecisions.com/docs Set up the report The report must be grouped on the same fields used in the cross-tab. For example, if the cross-tab needs to display the PercentOfDistinctCount of the Customer ID field with a Country row and Region column, perform the following steps: 1. The first group is based on the cross-tab s row field. On the Insert menu, click Group. From the top drop-down box select Customer.Country. Click OK. 2. The second group is based on the cross-tab s column field. On the Insert menu, click Group. From the top drop-down box select Customer.Region. Click OK. 3. Insert the field that requires the PercentOfDistinctCount summary to your details section. On the View menu click Field Explorer. Expand Database Fields then expand Customer. Add the Customer.Customer ID field to the Details section. 4. Right-click the Customer.Customer ID field and click Insert > Summary. From the Calculate this summary drop-down box click Distinct count. From the Summary location drop-down box click Group #2: Customer.Region. Select the Show as a percentage of check box and click Group #1: DistinctCount of Customer ID. 10/4/2002 3:24 PM Copyright 2002 Crystal Decisions, Inc. All Rights Reserved. Page 3

Create a formula The next step is to create a formula, which displays the PercentOfDistinctCount. 1. Create a formula and name it Distinct_Count. 2. From the Report Fields box double-click the Summary field created in the previous steps. The formula will appear as: PercentOfDistinctCount ({Customer.Customer ID}, {Customer.Region}, {Customer.Country}) 3. Click the Save button then click the Close button. Create a Cross-tab The final step is to create a cross-tab to use the formula created in the previous steps as the summarized field. 1. On the Insert menu click Cross-Tab. The Cross-tab Expert dialog box will appear. 2. From the Available Fields box move Customer.Country to the Rows box. 3. From the Available Fields box move Customer.Region to the Columns box. 4. From the Available Fields box move the @Distinct_Count formula, created in the previous steps, to the Summarized Fields box. 5. Click the @Distinct_Count formula in the Summarized Fields box then click the Change Summary button. From the Calculate this summary drop-down box click Maximum. 6. Click the OK button to close the Cross-Tab Expert dialog box then insert the cross-tab in the Report Header section. 7. Suppress every other section in the report. Now when the report is previewed, the PercentOfDistinctCount summary in the cross-tab will appear with correct decimal accuracy. Unlike the previous example, the report does not need to be set up with the same grouping as the cross-tab in order to display the correct value. PercentOfCount Summaries To correctly display a PercentOfCount summary, summarize a formula field that displays a value of 1 in the cross-tab instead of summarizing a database field. When this formula is summed it will display the same total as a count of the field would return. Unlike a PercentOfCount summary, a PercentOfSum summary will display correct decimal precision. 10/4/2002 3:24 PM Copyright 2002 Crystal Decisions, Inc. All Rights Reserved. Page 4

Create a formula The first step is to create a formula, which outputs a value of 1. 1. Create a formula and name it Count. Enter the following: WhileReadingRecords; 1 2. Click the Save button then click the Close button. Create a Cross-tab The final step is to create a cross-tab that uses the formula created in the previous steps as the summarized field. 1. On the Insert menu click Cross-Tab. The Cross-tab Expert will appear. 2. From the Available Fields box move Customer.Country to the Rows box. 3. From the Available Fields box move Customer.Region to the Columns box. 4. Add the @Count formula created in the previous steps to the Summarized fields box. 5. Click the @Count formula in the Summarized Fields box then click the Change Summary button. The Edit Summary dialog box will appear. 6. From the Calculate this summary drop-down box click Sum. 7. Check the Show as a percentage of check box and, from the drop-down box click Total: Sum of Customer ID. 8. Select the Column radio button. 9. Click the OK button to close the Edit Summary dialog box then click the OK button to close the Cross-Tab Expert dialog box. 10. Insert the cross-tab in the Report Header section. Now, when the report is previewed the PercentOfCount summary in the crosstab will appear with correct decimal accuracy. Contacting Crystal Decisions for Technical Support We recommend that you refer to the product documentation and that you visit our Technical Support web site for more resources. Self-serve Support: http://support.crystaldecisions.com/ 10/4/2002 3:24 PM Copyright 2002 Crystal Decisions, Inc. All Rights Reserved. Page 5

Email Support: http://support.crystaldecisions.com/support/answers.asp Telephone Support: http://www.crystaldecisions.com/contact/support.asp 10/4/2002 3:24 PM Copyright 2002 Crystal Decisions, Inc. All Rights Reserved. Page 6