You can create parameters for each dimension you would want to use in that group. Then create a calculated field that examines the parameter ad returns the appropriate dimension for the parameter value. Place that calculated field on the worksheet and expose the parameter control.
Here is a quick example in Tableau Public you can download as reference.
You are probably looking for a parameter/calculated field setup:
In the attached workbook go to the Explore Data tab, then the Scatter Plot sheet to see you this works. In your case it sounds like you are setting columns instead of axis, but the concept is the same.
Shawn Wallwork Samples 9.2.twbx 30.0 MB
Thanks Shawn for your reply,
but the main issue is i want to see the values row and column wise when i selected the values in parameter
can you please solve it