Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When you create a Pivot Table, Microsoft Excel takes a copy of the source data and stores it in the Pivot Cache. The Pivot Cache is held in the memory of Microsoft Excel. You cannot see it, but that is the data the Pivot Table references when you build your Pivot Table, change a Slicer selection, or move rows/columns around. This enables Microsoft Excel to be very responsive to changes in the Pivot Table, but it can also double the size of your file. After all, the Pivot Cache is just a duplicate of your source data, so it makes sense that your file size could potentially double.
When you load your Excel file into the Workbook object, you can decide whether you also want to load the records of the Pivot Cache or not, using the LoadOptions.parsing_pivot_cached_records property. The default value of this property is false. If the Pivot Cache is quite big, it can increase performance. But if you also want to load the records of the Pivot Cache, you should set this property to true.
The following sample code explains the usage of LoadOptions.parsing_pivot_cached_records property. It loads the sample Excel file while parsing the pivot cached records. Then it refreshes the pivot table and saves it as the output Excel file.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.