Refresh and Calculate Pivot Table having Calculated Items
Contents
[
Hide
]
Aspose.Cells for Python via .NET now supports refreshing and calculating pivot table having calculated items. Please use the PivotTable.refresh_data and PivotTable.calculate_data as usual to perform this function.
Refresh and Calculate Pivot Table having Calculated Items
The following sample code loads the source excel file which contains a pivot table having three calculated items such as “add”, “div”, “div2”. We first change the value of cell D2 to 20 and then refresh and calculate pivot table using Aspose.Cells for Python via .NET APIs and save the workbook in PDF format. The results in the output PDF shows that Aspose.Cells for Python via .NET refreshed and calculated the pivot table having calculated items successfully. You can verify it using Microsoft Excel by manually putting the value 20 in cell D2 and then refreshing the pivot table via Alt+F5 shortcut key or clicking the pivot table Refresh button.