How to implement row and column total for this pivot grid?