Features
@@ -2104,5 +2105,122 @@
Simply call the getZeroHeight() method and it will return 'true' if the row is hidden, 'false' otherwise.
+
+ Pivot Table
+
+ In order to create a Pivot Table using POI one must first create the sheet with the data wanted in the Pivot Table. Eg.
+
+
+
+ The Pivot Table can then be created by referencing the area of the values (in our case A1:D4) and where we want it to be placed.
+
+
+
+ We have now created a basic Pivot Table. Writing this to a xlsx-file and opening this in Excel will just show an empty box, ready for configurations to be made.
+
+
+
+ To configure your Pivot Table to display the information as wanted you must configure which values (if any) are wanted as:
+ Report Filter
+ ,
+ Row Label
+ and
+ Column_Label
+ .
+
+
Row Label
+
+
Column Label
+
+
Different calculations can be performed on the selected column, such as:
+
+
Average: DataConsolidateFunction.AVERAGE
+
Count: DataConsolidateFunction.COUNT
+
Count nums: DataConsolidateFunction.COUNT_NUMS
+
Max: DataConsolidateFunction.MAX
+
Min: DataConsolidateFunction.MIN
+
Product: DataConsolidateFunction.PRODUCT
+
StdDev: DataConsolidateFunction.STD_DEV
+
StdDevp: DataConsolidateFunction.STD_DEVP
+
Sum: DataConsolidateFunction.SUM
+
Var: DataConsolidateFunction.VAR
+
Varp: DataConsolidateFunction.VARP
+
+
Report Filter
+
+
Pivot Tables can as well be created using data from another sheet using either a sheet object: