Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Microsoft Excel allows you to group pivot fields of the pivot table. When there is a large amount of data related to a pivot field, it is often useful to group them into sections. Aspose.Cells also provides this feature using the PivotTable.GroupBy() method.
The following sample code loads the sample Excel file and performs grouping on the first pivot field using the PivotTable.GroupBy() method. It then refreshes and calculates data of the pivot table and saves the workbook as output Excel file. The screenshot shows the effect of the sample code on the sample Excel file. As you can see in the screenshot, the first pivot field is now grouped by months and quarters.

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.