NaN in totals row

Hello,

after grouping the table, i get the following output “NaNNaN” in the totals row.
Without grouping everything is ok.

Could you please, provide a complete demo or a demo link, where the problem could be reconstructed locally.