We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How do you change the label/heading of a pivot table DATA column in the Java API?

It’s defaulting to “Sum of [Data Source]” and I want to change that label. How do I do it in the Java API? Thanks.

I figured it out:


PivotFields dataFields = pivotTable.getDataFields();
dataFields.get(0).setDisplayName(“Impressions”);