Calculated fields in Tableau require that the field is visible. I do not believe that you would even have the option to hide a column if it is being referenced by a dimension/measure that is on a sheet/dashboard. You can get around this in a limited fashion by using parameters to control which Measure Names are visible but it is not always practical if you have a lot of Measures.
To do this you would need to create a parameter called "Measure" with the Measures you would like to include.
Create a calculation called Measures to get the values for the different measures you would want.
WHEN "Days to Ship Actual" then [Days to Ship Actual]
WHEN "Days to Ship Scheduled" then [Days to Ship Scheduled]
WHEN "Discount" then [Discount]
When "Profit" then [Profit]
WHEN "Sales" then [Sales]
WHEN "Quantity" then [Quantity]
Add your Measure Names Filter to the top and choose your "Measures" Calculation, add the parameter to the view and the Measure Value.
Attached a workbook for reference, again not ideal if you have a lot of measures but works in some cases.
Superstore_v10.5_Measure_Parameter.twbx 1,009.0 KB
Thank you so much Andrew for the response.I got your point.