<< Click to Display Table of Contents >>

 

eurd-win-weighted-average-result

Follow the steps below to calculate a weighted average:

 

1.Group the report's data using the Group and Sort Panel and construct a layout like the following:

eurd-win-weighted-average-group-data

2.Add the Group Footer band to the report and drop a Label control on this band to display the summary result. Click the label's smart tag, then click the Summary field's ellipsis button.

eurd-win-weighted-average-summary-running

3.In the invoked Summary Editor window:

oSet the Summary Running property to Group.

oSet the Summary Function property to Weighed average.

oSet the Argument Expression property to the field to count the weighted average on, and the Weight property to the field that provides weights.

eurd-win-weighted-average-summary-expression

4.You can also use the control's Format String property to format the summary value. For instance, set this property to Weighted Average Price: {0:c2}.