Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Weighted Average Summary
posted

How do I add a summary that calculates a weighted average and handles when the group by columns gets changed?  Do I need to create a custom summary?  If so, are there examples of doing this? I have not ventured into creating my own summaries yet.  thanks

Parents
  • 469350
    Suggested Answer
    Offline posted

    I'm not exactly sure how a weighted average is calculated. I assume this would depend on two columns of the grid instead of just one, though.

    If that's the case, then you would have to calculate this yourself using a custom summary. It's pretty simple. Create a class that implement ICustomSummaryCalculator and assign an instance of that class to the summary when you create it.

    There are three methods on this interface, one that begins the calculation, one that ends it, and one that fires passing in the rows for which the summary is being calculated.

Reply Children