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
945
Column Summaries - Sum only
posted

Is there a way to display only the SUM in the summaries instead of the SUM, MIN, MAX, AVG, and Count.

I basically want a Totals row at the bottom of my table with the SUM only of each column. Is that possible?

Parents
  • 775
    Suggested Answer
    posted

    Hello Ryan,

     

        Yes, that's possible. What you need to do is to specify that you need only the "SUM" displayed. This is achieved through the "columnSettings" object in the "features" array. Here is a code sample:

    ...

    features: [

      {

        name: "Summaries",

        columnSettings: [

          { columnKey: "ProductID", allowSummaries: true, summaryOperands: [ { "rowDisplayLabel": "Summary", "type", "SUM", "active": true } ] },

          { columnKey: "Name", allowSummaries: true, summaryOperands: [ { "rowDisplayLabel": "Summary", "type", "SUM", "active": true } ] },

          { columnKey: "ProductNumber", allowSummaries: true, summaryOperands: [ { "rowDisplayLabel": "Summary", "type", "SUM", "active": true } ] }

        ]

      }

    ]

    ...

        You need to specify for each column that, you need only the "SUM" operation. You can also refer to this sample. If you have any additional questions, please don't hesitate to ask.

     

    Thanks,

    Martin Stoev

Reply Children
No Data