Forum Discussion
Dynamically add or remove columns from table visual using slicer selection
- 5 years ago
Hi, simrantuli
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may go to Power Query, add an index column and then unpivot column 'Country', 'Sales', 'Profit'.
Add an index column:
Unpivot columns:
Then you may use decide which column to display with the slicer in Power BI Desktop.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, simrantuli have you got the Solution?
Use "Field Parameters". If you dont see it go to Options > Preview > Enable Field Parameters.
then create a parameter with columns you would like. It will solve all the mentioned problems unless you are connected live. It works in composite and import models.