How to turn off subtotals in Pivot Table programmatically - poi java
<p>I'm programmatically creating a pivot table in Excel.</p>

<p>Basically I want to set 'Subtotals' to None in Field Settings for a cell.</p>

<p>Right Click on a cell -> select 'Field Settings' -> in the popup window set 'Subtotals' to 'None' as shown in the attached image.</p>

<p>Any help is highly appreciated.</p>

<p><a href="https://i.stack.imgur.com/ML9mF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ML9mF.png" alt="enter image description here"></a></p>