This can only be accomplished via parameters which can not be altered based on data in the dataset.
The only way to do this automatically would be to set up a dynamic parameter. However, that would only account for when the dataset loads and not any interactions.