|
|||||||||
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Database Tips: Rounding ErrorsWe 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:
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:
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, optimizingGet 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
Improve report reliability and reduce maintenance effort
Speed development and maintenance
And then there's the powerful project management
part....
Improve Project Management
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 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). Improve report performanceReport Analyzer automatically detects potential performance issues in your report design settings, including record selection formulas, grouping options and database options.
Improve report reliability and maintenanceReport Analyzer documents over 30 design and style settings.
Speed development and maintenanceYou 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.
Project ManagementReport Analyzer generates comprehensive documentation of your reports, with over 100 presentation quality reports. Complexity metrics assist with test case planning and maintenance estimates.
|