Hi,
According to your description, my understanding is that you want to get sum of columns of a list web part.
You can set properties of totals in the list web part via modify view.
1, Click the list ribbon in the list web part and select modify view.
2, Set properties of totals as below picture.

3, Click OK.
Best Regards,
Andy Wu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.
