Free Support Forum -

Add a Pivot table grouping

Dear Aspose Team,

Please let me know if we can add a grouping in a pivot table using Aspose.cells v6. In Excel, the functionality can be accomplished by right clicking the pivot field and create a grouping or by using Data> Grouping tab.

Please let me know if there is an equivalent api for this.



I think you may try to use Aspose.Cells Grouping rows/cols feature for your requirement, see the document for your reference:

Thank you.

Thanks Amjad for the reply.

I would like to know if a grouping in a pivot table is possible, as against the grouping of rows/columns.
By this, I meant that set of values in a pivot table be grouped to a new value.

Thanks again


Well, I am afraid, the direct PivotTable grouping feature is not available at the moment. I have logged your feature request with an id: CELLSNET-29407. We will look into it later on.

thank you.

Thanks Amjad for your reply. Please let me know when this feature will be included.



We will try to support this feature before the end of next month. Once it is supported, we will let you know here.

Thanks and keep in touch.

Thanks Amjad for your reply. I would be awaiting for it .



We have fixed this issue. Please download: Aspose.Cells for .NET v7.0.0.1


//set autogroup field


//set manual group field

ArrayList list = new ArrayList();


pivotTable.SetManualGroupField(0, 2, 5, list, 2);

list = new ArrayList();


DateTime start = new DateTime(1930, 6, 2);

DateTime end = new DateTime(1931, 9, 10);

pivotTable.SetManualGroupField(0, start, end, list, 1);