Total Report Customization is the mantra of the ASPxPivotGrid. End-users are free to change the control's layout to generate the perfect report. From a very general overview of the data to each and every individual detail in a single report - everything can be accomplished at runtime with just a few drag and drop operations. Illustrative of the ASPxPivotGrid's powerhouse feature-set is its summary computation capabilities. As end-users increase the amount of detail in a report, a more general overview of the data is present - totals. So end-users won't have to change the report's structure each and every time they need more or less detail. Only a single report is required since there is no need to choose between complexity and detail or simplicity and less information - they get it all in one place. And as you will see a little later on, you also don't have to do a single thing to achieve this!
The ASPxPivotGrid can display two unique kinds of summaries: an out-of-the-box solution that perfectly matches most business needs and a completely customizable solution to satisfy the most demanding of users.
Automatic Summary Computation - Group and Grand Totals
In general, automated solutions are always more efficient than those that must be implemented manually. As such, the ASPxPivotGrid ships with an automatic summary computation engine - an intuitive way in which to provide instant data analysis options to your customers.
Automatic computations are enabled by default and calculate the same aggregate function's value as is calculated in data cells. When you change a field's summary kind, these totals are automatically updated to calculate the same function. Thus, you don't have to worry about any additional customizations - a more general data view is always available.
There are two kinds of automatic totals - grand totals and group totals. Grand totals may be the only thing displayed in a report. For instance, end-users may need to display the sales volume for each product without any additional details. Or they may need to see yearly sales without concerning themselvs with the quantity of sales for particular products.
To display a report with grand totals only, leave either the column or row area empty. End-users can also do the same by dragging field headers away from a column or row area. The following image shows two examples.
If both the column and row areas contain data, only grand totals are displayed. The following image shows the previous two reports combined into a single report.
If values are displayed hierarchically in a report, end-users can expand parent values to see more detailed data. At the same time, an automatic group total is displayed for each expanded group. Thus, end-users still see a summary for the entire group. More and more details can be added into a report, but not a single thing is sacrificed.
Demo: Single Totals
With v2008 vol 2, end-users have extended freedom in report customization and thus data analysis. You can now enable Running totals for required fields or even allow users to determine which total calculation mechanism is most appropriate for their current data analysis task.
What's great about Running Totals in an interactive control like the XtraPivotGrid is that total values depend upon the order of values and, at the same time, end-users can change that order by sorting, grouping or filtering. Thus, with Running Totals you don't get one more way to present data. With this feature, end-users can produce an endless array of reports they couldn't generate previously.
Demo: Running Totals
Manually Specified Totals
Manually specified totals let you uncouple the data displayed within the report and group totals. The number and type of automatic totals always matches the number of data fields and their summary types. Manual totals give you more control - you can create any number of group totals for each field and specify any aggregate function types.
Consider a sample report where the extended price, the maximum and the minimum price are displayed for product category. Automatic totals are displayed.
With custom totals, you can get rid of the maximum and minimum values within each product and display these summaries only within the product category totals. To do so, simply switch the CategoryName field's TotalsVisibility to CustomTotals and add any number of entries to this field's CustomTotals collection. In this example, you'll need three items - for the prices sum, maximum and minimum prices.
The result is a more compact report that doesn't display any unnecessary data.
This is just a single scenario for using custom totals. We give you the freedom to create any set of group totals for any fields - so you can tackle incredibly sophisticated data analysis tasks with ease.
Demo: Multiple Totals
Documentation: Custom Totals
Common Features of Automatic and Manually-Enabled Totals
Whichever approach you take for the display of totals, you can control how totals are aligned with respect to corresponding data cells. By default, totals are displayed after the data. You can change this using the OptionsView.TotalsLocation property. The following image describes a pivot grid control whose totals are displayed before the corresponding data.