crystal reports viewers, crystal reports schedulers, view crystal reports, report analyzers, burst reporting, report scheduler
 
view crystal reports, rpt viewer, crystal reports viewers, crystal reports schedulers, report analyzers, burst reporting, report scheduler
desktop viewer, crystal reports viewers, crystal reports schedulers, report analyzers, burst reporting, report scheduler

Crystal Reports Tools: Improve Performance While Saving Time and Money

  Resources  
Best sellers:
cView
Report Analyzer
cViewSERVER
ReCrystallize
 


Articles:
Administration
Advanced
Basic
Crystal eNL
Database
Financial
Problems Solved

Books:
CR Books

Database Books
Developer Books

 
Tools:
Analyzers
Bestsellers

CR Schedulers
CR UFLs
CR Viewers
DataBase Tools
Graphics
International
Mail UFLs
ReCrystallizePro


Add'l:

About us

Contact Us
cViewSUITE Ppt
Support

 

CrystalReports
on Steroids

Database Tips: Rounding Errors

We rely on our databases for accurate calculations. We like to see information generated "on the fly" from raw data. But a bias among managers, going back to the early days of spreadsheets can lead us to thwart this process and introduce inaccuracy.

For this tip, we're going to look at spreadsheets. You can apply the lesson to your particular database program, and you may need to apply it to the spreadsheets that feed those database programs.

VisiCalc was the product that launched the era of the electronic spreadsheet. It dominated the market, and was popular with engineers until Lotus Corporation came out with a more robust product.

When Lotus released its 3-in-1 product, Lotus 1-2-3, the use of the electronic spreadsheet made a quantum leap forward. This product was a:

  1. Spreadsheet. You could perform calculations, analysis, and manipulation of data.

  2. Database. You could store data in a flat table, and even perform queries.

  3. Graphics package. You could represent data with charts and graphs.

Borland proved to be serious competition to Lotus, but Microsoft ultimately trumped them both. In 1994, Microsoft released a version of Office that boosted Excel into the dominant position as the spreadsheet/workbook tool of choice. Today, Excel still reigns.

And it's often used to create the data that you find in your databases--sales projections, for example. For many people, Excel serves all of their database needs. This is much to the ire of IT admins, who must then try to resolve the "islands of information" problem. But even if you resolve that problem, Excel issues can still create data accuracy problems.

Though Excel is in wide use (or rampant use, depending on your viewpoint), many users don't understand the basics of the program. When it comes to rounding, that is certainly the case.

By default, Excel rounds a number for display purposes but uses the unrounded number for calculation. This means you may "see" an "error" in the math--but what you are really seeing is display vs. actual. A way to fix this is to increase the number of digits displayed. But the display is really for reference. What counts is the calculation.

If you use the ROUND function before the final calculation, you make display and actual agree the whole way through. But what you are doing then is losing accuracy at every step by forcing Excel to work with the rounded numbers.
 
Understand three things when creating financial calculations in Excel spreadsheets:
  1. Excel does the calculation with actual numbers.
  2. If you format the numbers as currency, Excel displays the product of each row as rounded. But, it maintains the actual (unrounded) numbers behind the scenes for purposes of calculation.
  3. The total for each worksheet is rounded for purposes of display by the "format as currency" command.

Let's say you keep this in mind, and thus don't use the ROUND command except for the final number. (If you use currency formatting, you don't need to use ROUND at all). That is, you don't use ROUND during calculation. This will result in a maximum error of less than 0.49999 cents (we can assume 5 decimal places is adequate, for purposes of illustration here).

So, whether you have 10 rows or 10,000 rows, your maximum error will be statistically insignificant.

But, that's not true if you are rounding during the calculation process. The maximum error, if using the ROUND function for each row would be (0.49999 * N), where N is the number of rows. So for 20 rows, the maximum error is then $10.

Excel is good to 255 digits (for obvious reasons--256 being the square of 16). After that, it simply truncates the number at the least significant digit (I'm 99% sure about the truncation, rather than rounding). You can display all 255 digits, if you choose. For financials, you should choose not to--that follows the aesthetics convention of showing only two decimal places.

But aesthetics and calculation are going to have differences. It's the calculation that you want to rely on.

This article is copyrighted by Crystalkeen, Mindconnection, and Chelsea Technologies Ltd. It may be freely copied and distributed as long as the original copyright is displayed and no modifications are made to this material. Extracts are permitted. The names Crystal Reports and Seagate Info are trademarks owned by Business Objects.

Tuning, tweaking, optimizing

Get your database tuned, tweaked, and optimized by using Report Analyzer to look for anomalies. Originally designed just for Crystal Reports, Version 5 allows you to analyze any data source or file system.

Let's take a closer look at what Report Analyzer for Crystal Reports allows you to do:

Improve report performance

  • Automatically detect reports that do not take advantage of server side database processing.
  • Detect record selection formulas which use data type conversion functions.
  • Detect group fields which use formulas instead of SQL Expression fields.
  • Find report tables which use less than an optimal number of fields.
  • Discover special fields which cause an additional pass over the report data source.

 Improve report reliability and reduce maintenance effort

  • Discover unused Formulas, Fields, and Variables.
  • Identify group settings which cause blank pages and footers.
  • Identify missing standard Crystal documentation best practices (Report Title, Author, Description special fields).
  • Locate reports which may use the "Convert null field to default" setting inconsistently.
  • Keep versions of your documented reports for historical comparison.

 Speed development and maintenance

  • View report designs in a design window similar to the one in the Crystal Reports designer program.
  • Select design objects and view/print settings, formula code (including conditional formatting formulas), dependencies with other design objects, and call stacks (for formulas only).
  • Use interactive diagrams (trees) of formula hierarchies, object dependencies and report design elements.
  • Query and print over 600 report settings across all documented reports. Perform instant impact assessment for database changes and formula changes across all documented reports.
  • Locate which reports use specific functions, parameters, and design settings.
And then there's the powerful project management part....

Improve Project Management

  • Generate summary and detailed documentation.
  • Analyze report complexity metrics to assist with test plan development and maintenance planning.
  • Easy to use documentation explorer to browse and compare report design settings.
  • Print report design diagrams.
  • Print report data dictionaries.
  • Extensive formula printouts including call trees, object cross references, formatted listing, and conditional formulas.
  • All documentation can be exported in a variety of formats including PDF, HTML and Word.
  • Uses Crystal Reports to produce the documentation, enabling complete customization
  • Plus more!

For pricing and/or purchase, click here.

 

 

"Report Analyzer does it all. This is the best Crystal Reports 3rd party application on the market today! The numerous features combined with great performance makes Report Analyzer the ultimate documentation and analysis tool." -- Brian Kuipers, CrystalInfo.Net, USA

Report Analyzer, Documentation Tool for Crystal Reports, analyzing crystal reports, optimizing crystal reports, troubleshoot crystal reports, improve crystal reports, troubleshooting crystal reports, crystal reports information, crystal reports software, crystal reports downloads, crystal software, crystal reports analysis tools, crystal downloads, maintaining crystal reports, crystal reports maintenance tools, crystal reports analysis software, crystal reports development tools, crystal reports summarization, crystal reports design tools, crystal reports developers, crystal reports designers, crystal reports project management, documenting crystal reports, crystal reports documentation, crystal reports metrics, crystal reports analysis tools, diagramming crystal reports, crystal reports design diagrams, crystal reports data dictionaries, crystal reports formula printouts, printing out crystal reports formulas, export crystal reports documents, summarize crystal reports, crystal reports summaries, crystal reports interactive diagrams, crystal reports analyzer

Report Analyzer is the ultimate documentation and analysis tool for Crystal Reports users and developers. With a comprehensive library of analysis and documentation reports, Report Analyzer provides you with complete documentation, analysis, and performance suggestions for your Crystal Reports projects. Keep your investment in Crystal Technology at its best performance using Report Analyzer!

 

How does Report Analyzer Work?

Report Analyzer connects to your local Crystal Reports or Crystal Enterprise APS servers and imports their design definition into a documentation database. These imported reports are organized into documentation groups within the database to organize your information for easy referencing and reporting.

How can Report Analyzer help you?

Report Analyzer now comes in two editions - Standard and Enterprise (click here for Enterprise features).
Both editions of Report Analyzer assist with:

  • Comprehensive report analysis
  • Reducing maintenance effort
  • Performance/design tuning
  • Change management
  • Test plan development
  • Extensive documentation

    Improve report performance

    Report Analyzer automatically detects potential performance issues in your report design settings, including record selection formulas, grouping options and database options.

  • Automatically detect reports that do not take advantage of server side database processing.
  • Detect record selection formulas that use data type conversion functions.
  • Detect group fields that use formulas instead of SQL Expression fields.
  • Find report tables which use less than an optimal number of fields.
  • Discover special fields which cause an additional pass over the report data source.
  •  

    Report Analyzer for Crystal Reports Screenshot

    Improve report reliability and maintenance

    Report Analyzer documents over 30 design and style settings.

  • Discover unused Formulas, Fields, and Variables.
  • Identify group settings that cause blank pages and footers.
  • Identify missing standard Crystal documentation best practices (Report Title, Author, Description special fields).
  • Locate reports which may use the "Convert null field to default" setting inconsistently.
  • Keep versions of your documented reports for historical comparison.
  •  

    Speed development and maintenance

    You can easily view dependencies between report objects such as formulas, SQL expression fields, parameters, and database fields with the dependency viewer. Additionally, the powerful query feature lets you view dependency information across reporting projects.

  • View report designs in a design window similar to the one in the Crystal Reports designer program.
  • Select design objects and view/print settings, formula code (including conditional formatting formulas), dependencies with other design objects, and call stacks (for formulas only).
  • Use interactive diagrams (trees) of formula hierarchies, object dependencies and report design elements.

    Click to Enlarge
    Click to enlarge

  • Query and print over 600 report settings across all documented reports. Perform instant impact assessment for database changes and formula changes across all documented reports.
  • Locate which reports use specific functions, parameters, and design settings.
  •  

    Click to Enlarge
    Click to enlarge

    Project Management

    Report Analyzer generates comprehensive documentation of your reports, with over 100 presentation quality reports. Complexity metrics assist with test case planning and maintenance estimates.

  • Generate summary and detailed documentation.
  • Analyze report complexity metrics to assist with test plan development and maintenance planning.
  • Easy to use documentation explorer to browse and compare report design settings.
  • Print report design diagrams.
  • Print report data dictionaries.
  • Extensive formula printouts including call trees, object cross references, formatted listing, and conditional formulas.
  • All documentation can be exported in a variety of formats including PDF, HTML and Word.
  • Uses Crystal Reports to produce the documentation, enabling complete customization.
  • Plus more!

     

    Click to Enlarge
    Click to enlarge

  •