Forum Discussion

Bernice's avatar
Bernice
New Member
8 days ago
Solved

Paginated Report - Calculated Field

I'm working with a paginated report, have a calculated field that displays encumbrances.  I need to create a total for this column based on the following formula (Beginning Balance - YTD Expenses + Y...
  • v-abhinavmu's avatar
    v-abhinavmu
    2 days ago

    Hi Bernice​,
    Thanks for the additional details.

    Since the Unexpended Balance is calculated as Beginning Balance − YTD Expenses + YTD Receipts, I recommend checking the aggregation scope of the total expression and how BegBal is represented in the underlying dataset.

    According to the Microsoft documentation, Sum aggregates non-null numeric values within the specified scope. If no scope is specified, it uses the current scope, which depends on where the expression is placed in the report. The documentation also explains that the scope of an expression affects which data is included in an aggregate calculation.

    Could you check whether BegBal is repeated across multiple dataset rows for each fund type, or whether it appears only once? Also, please confirm the row group associated with the fund type and where the total expression is placed. This information will help determine the appropriate aggregation for the Unexpended Balance and the resulting End Balance.

    For more details, please refer to the below Official Microsoft Documentation:
    •  Sum function in a paginated report - Microsoft Report Builder & Power BI Report Builder | Microsoft Learn
    •  Expression scope for totals, aggregates, and built-in collections in a paginated report - Microsoft Report Builder & Power BI Report Builder | Microsoft Learn

    I hope this helps. Please feel free to reach out if you have any further questions.
    Thank you.