Skip to main content
All docs
V23.2

Calculate Carried Forward/Brought Forward

  • 2 minutes to read

Overview

Carried Forward/Brought Forward summaries refer to the practice of automatically transferring specific values or calculations from one reporting period or data group to another (eliminating the need for manual data entry or redundant calculations).

As the following image illustrates, calculated running summaries are transferred from the report’s page footer to the header of the next page. Values are calculated for the group and are specified by the user. It can involve grouping by monthly expenses, or grouping by month with the cumulative balance of total expenses.

CarryOver Scheme

In Reporting controls, Carried Forward/Brought Forward summaries are represented by the SummaryFunc.CarryoverSum function assigned to the XRSummary.Func property.

Example: How to Display Transactions for a User Account

The example shows how to display transactions for a user account. These transactions represent expenses for one month. Records span multiple pages and the summary displayed in the footer of the first page is repeated in the header of the subsequent page.

Refer to the following demo to see the generated report:

Run Demo: Carryover Summary

  1. Place the XRLabel controls in group header/group footer bands. Enable group header/group footer bands’ RepeatEveryPage option.

  2. Bind the XRLabel controls to the following expression:

    sumCarryoverSum([Amount])

    This allows DevExpress Reports to display the balance on each page.