First welcome to Tableau
if you are using a simple calculation then open the green pill- go to total using and select how you wan the totals to work
If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution. Thank you.
I think you need use LOD to calculate, can you provide a sample workbook?