I was able to create a calculated field that would display SUM(Sales) when two or more states are selected, and would display SUM(Profit) when only one state was selected.
Please see the calculated field named "Display" in the attached workbook. The [State] field in this calculation could be replaced by the [Country] field in your data.
Let me know if you have any questions about the methods used in this example workbook.
Example.twbx 1.5 MB