You'll need to provide a Tableau Packaged Workbook and detail your issue if you want specific help.
Could you share a sample data set and workbook showing the difference your have found? This is just to analyze your view configuration and determine the conditions that give that result.
I agree that a packaged workbook (TWBX) file is needed to help you. But it sounds like you may be confused about Row-level calculations versus Aggregate calculations -- this may help you:
With SUM(A) + SUM(B), you will get the aggregate results of each, summed to the level of detail you've set in your visualization (this is determined by the Dimensions you've placed in the view/worksheet).
With SUM(A+B), you are adding the A and B values for each record (at a row level), and then aggregating up to the level of detail in your visualization (again, this is set by the Dimensions in your view).
You should be able to determine the difference by studying the Summary and Underlying data Tableau is providing you with.
I also highly recommend the following videos, which help add clarity to how Tableau works at a very basic level (the importance of Dimensions versus Measures is highlighted in the first video, and the second video discusses the different types of calculations you can create in Tableau -- the difference between row level and aggregate calcs should be a bit more clear after studying these links provided)
Hi Matthew, thanks for pointing me in the right direction. Cannot easily post the twbx due to data sensitivtiy... cheers
You can create some rows of sample data in Excel, and use those as the basis for a pacakged workbook. Nearly everyone on the Forum works with some sort of confidential data, but we have to find ways around that.
Here's a great post on how Tableau makes creating sample TWBX files easy:
You could simply create a couple of Columns in Excel, A and B, and create some mocked up rows of data, and use that as the basis for an example in this particular thread. We only need enough data to replicate the issue, so its often easier to create your own data for an example. However, you could also demonstrate the concepts by using one of the sample datasets that ships with Tableau, like the Superstore Sales dataset. You'd simply reference different fields, but the concept of an aggregate versus a row-level value would still hold true.
Let us know if you need further help.