P

PivotGrid_SubtotalsUptoLevel

This sample shows how to customize the PivotGrid so that it shows the subtotal rows up to a specified level.

https://stackblitz.com/edit/js-qyfo3m