If I understand correctly, you want the pivot table to show the columns based on user selection. For instance, if the user selects “selected year”, then the visual has to display selected year and likewise.
If that is the requirement, then you may have to create parameter, add control and write a calculated field like below one and use it in the visual. So that, the visual will dynamically change based on user selection.
Since we have not heard back from you, I’ll go ahead and close/archive this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information.