GeneralSlicerData provides an aggregateData method to aggregate the data of a specific column or range.
aggregateData(columnName: string, aggregateType: SlicerAggregateType, range?: ISlicerRangeConditional): number
SlicerAggregateType provides 11 aggregate function types as follows:
You can also create your own data aggregation slicer as shown in the following code.
Click on the items in the chart slicer to filter by
Check this to allow the user to expand the year into months.