Grid “showTotals” in compact grid mode does not work. Totals/Grand Total rows are not displayed.
We have prepared a sample for you where pivot table is in compact grid mode and where totals and grand totals are displayed:
Please note that the grid options from your question are used in this sample and the issue is not reproducible there.
Could you please let me know if the sample is helpful for your case and resolves the issue?
If not, please provide us with more details to reproduce the issue on our side.