Working with data display formats of DataField in Pivot Table
Contents
[
Hide
]
Aspose.Cells for Python via .NET supports all the data display formats of DataField.
How to Set “Rank Smallest to Largest” and “Rank Largest to Smallest” display format option
Aspose.Cells for Python via .NET provides the ability to set the display format option for pivot fields. For this, the API provides the PivotField.data_display_format property. To rank largest to smallest, you may set the PivotField.data_display_format property to PivotFieldDataDisplayFormat.RANK_LARGEST_TO_SMALLEST. The following code snippet demonstrates setting the display format options.
Sample source and output files can be downloaded from here for testing the sample code: