Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi All,
I am looking to fulfil a requirement wherein I want to give the flexibility to the user to select which columns he/she wants to see in the table visual based on slicer selection.
E.g. let's say the user only wants to see Country and Sales in the table so he will select Country and Sales from the slicer. If he also wants to see column Profit, he can select Profit from the slicer and the table should show these 3 columns now.
Your help will be very much appreciated.
Thanks!
Solved! Go to Solution.
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
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.
@simrantuli , If want to replace measure it easy. You can use measure slicer.
measure slicer
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
For axis/group by row. You have use bookmarks or covert column to rows
Dynamically change chart axis in Power BI
https://www.youtube.com/watch?v=6jeSIRpjv0M
https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/
Bookmarks : https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
Hi Amit,
Thanks for replying.
But my requirement is slightly different. I want to create a table, the columns (dimensions and measures) of which can be dynamically added or removed by the user using slicer selection.
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
93 | |
87 | |
80 | |
69 | |
68 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |