In the Row Groups and Column Groups panel, click on the arrow to expand menu. Then select "Add total" and choose before or after your data. This with add the total for column and row, respectively, with the current level of aggregation.