Dynamically showing columns in a table visual

Hi

I have a dataset with 10 columns, I need to show few columns from that in a table visual but depending on the data. So lets say if the dataset has col1 = ‘One’, I only show col2,col3,col4 and if not show col3,col4,col5.
Since the dashboard is same I want to select which columns can be shown depending on the data in the underlying dataset

@Sam1 - Thank you for posting your query. I believe this can be done using parameters and calculated fields. Please go through the following posts, where a similar technique has been discussed which can provide you with the required relevant idea to try out the implementation at your end. Hope this helps!