All the values in the calculated field are static if you want make use of the dynamic values
in place of static values we have to make use of a parameter .parameter will replace static value
in the calculations, filters extra.in tableau we can create a different types of parameters like
string,integer,Boolean,date, extra to the parameter based on the datatype we can add the values manually we can add the values from field and even we can add from clipboard also.
note:
At a time the parameter we can select only single value multi values selection is not available.