---
description: >-
  Sums elements in a table up to this header (carry over from previous footer
  sum)
---

# Telerik Page Header Sum

{% hint style="info" %}
Each page sum function can only be used once in a report. Using it multiple times will result in wrong calculated values!
{% endhint %}

```javascript
//This function belongs in a PageHeaderSection of a telerik report
=PageExec("textBoxValue",             //put in a textbox from your table row. Typically your value textbox, but whatever is in your row will work. This triggers the accumulation of the values
           BrixxPageHeaderSum(
               Fields.yourValue,      //put in the Value Field you want to sum up
               PageNumber,            //this is fix (the PageNumber variable from your report. this will tell the function when to take a sum)
               ReportDefinition))     //this is fix (it will tell the sum to reset for each new report)
```
