Thanks for contacting Syncfusion Support.
You can set unique aggregation type to each value fields. So, we have prepared a sample for your reference where we have set unique aggregation types to the bound value fields. Kindly check the below code example.
Example: Column 1 (Unit Sold) is Sum, Column 2 (Sold Amount) is Average, Column 3 (Quarter) is Count.
Code Example:
this.dataSourceSettings = {
enableSorting: true,
columns: [{ name: 'Year' }],
values: [{ name: 'Sold', caption: 'Units Sold', type: 'Sum' }, { name: 'Amount', caption: 'Sold Amount', type: 'Avg' }, { name: 'Quarter', caption: 'Quarter', type: 'Count' }],
dataSource: this.getPivotData(),
rows: [{ name: 'Country' }],
formatSettings: [{ name: 'Amount', format: 'C0' }],
expandAll: false,
filters: []
};
|
Please check the below screenshots of displaying different aggregated for each column.
Meanwhile, we have prepared sample as per your requirements. Kindly check the below sample link.
Please let us know if you have concern.
We hope that the above sample will meet your requirement.
Regards,
Sivamathi.