This actually refers to the Syncfusion Excel Pivot table.
I was trying to set this option Subtotals > Show all Subtotals at Top of Group in the Pivot table, but did not find a way to do so. Neither on Pivottable object but also not on the PivotField object. Perhaps I overlook it but could not find a reference in the documentation. Does someone know how this option could be set in code? At least on this level I could not find it:
pivotTable.Fields.Axis = PivotAxisTypes.Row;
pivotTable.Fields.Position = 0;
pivotTable.Fields.ShowBlankRow = false;
pivotTable.Fields.Subtotals = PivotSubtotalTypes.None;
As a workaround for now I create a macro on opening the workbook that sets these options, but that will produce an xlsm file which is often restricted to open by the user. The macro code looks like the following and does work:
Subtotals = Array(True, False, False, False, False, False, False, False, False, False, _
// And that for all fields...
Thanks for any input!
We have implemented the feature "Provision to display row sub-totals at the bottom of the group", and we are now testing with other feature combinations. For your convenience, we have attached a screenshot of the pivot table with the feature below. However, this feature will be available in our upcoming Vol 4 main release, which is scheduled to be released at end of December, 2022. You can track the same by using the feedback link.
Sub-totals at top of the group:
Sub-totals at bottom of the group:
Angelin Faith Sheeba.
We are glad to announce that our Essential Studio 2022
Volume 4 Main Release V20.4.38 is rolled out and the feature “Provision to
display sub-totals at top of the group
” has been included in this release. Please refer to the below code example, screenshot and release notes.
Meanwhile, we have prepared a sample for your reference.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.