|
|||||||||
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Crystal Reports: Crosstabs in Crystal 2008The new advanced crosstab calculation features in Crystal Reports 2008 include a collection of neat new functions. These appear in the Formula Editor under the Grid Value Section. There are a several that are really important.
These return a number indicating the current row, column and summary of the cell. The Top Left cell has a row and column index of 0. If you have more than one summary in the cell, the first summary index is 0, the next is 1, etc..
You can use these functions to identify what row or column a certain value. These functions will return a -1 if the path isn’t found. If you want to add up the Hamilton, Tauranga and Rotorua column values in your crossgrid you would need to use the function ColumnPathIndexOf("Hamilton") This will identify that the Hamilton column is the 3rd column in this month’s report.
This will return the actual value of the summary in that cell in the crosstab. Combine this function with the ones above, and you can then create a new calculated member in the crosstab,
This will return the value of the Hamilton summary for the current column. You could then add this to the Tauranga and Rotorua values to get a Central North Island total for your report. (We should explain at this point to our overseas readers that Hamilton, Tauranga and Rotorua are all New Zealand Cities in the upper North Island. If you ever come to New Zealand they are all worth a visit.)
This returns the string value of the row or column for the current field. The group must be one of the alias fields used in the crosstab. You can specify these in the Customise Style section of the Crosstab expert.
These functions identify the group level within the crosstab. Level 0 is the grand total. You could also combine this with the GridRowColumnValue(Group) function above to set the location of your calculated member. Using the example above, we can insert our "Upper North Island" group at.
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. |
| Keep track of your cross-tabs with
Report
Analyzer "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.
|