Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying to have an option for Power Bi readers to be able to select the grouping of data in table/matrix visual.
For example, in the below table, I want to have a slicer which allows to see the price by Group1 or Group 2 based on what they select as grouping. I can add bookmark or just a fixed grouping in visual. But, this is not what I want as users should pick the grouping the want similiar to pivot table grouping which can be anything.
| Item | Group1 | Group2 | Price |
| A | AA | LL | 200 |
| B | AA | GG | 300 |
| C | BB | EE | 400 |
| D | CC | EE | 100 |
| E | DD | EE | 200 |
| F | BB | LL | 500 |
Grouped by Group2
| EE | 700 |
| GG | 300 |
| LL | 700 |
| Grouped by Group1 | |
| AA | 500 |
| BB | 900 |
| CC | 100 |
| DD | 200 |
Solved! Go to Solution.
https://www.dropbox.com/s/ny43sbbqvc7648f/amir.pbix?dl=0
Hi @amirghaderi
Has your problem been solved ? If it has been solved, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards
Community Support Team _ Ailsa Tao
https://www.dropbox.com/s/ny43sbbqvc7648f/amir.pbix?dl=0
Thanks, this soloution works to an extend. i have faced another issue now.
If there is a record which does not have group1/2 code not assigned, i want to be shown in the report as a blank grouping. For record F in the below screen, it should be shown in the visual with blank group. Any idea how to fix it?
| Item | Group1 | Group2 | Price |
| A | AA | LL | 200 |
| B | AA | GG | 300 |
| C | BB | EE | 400 |
| D | CC | EE | 100 |
| E | DD | EE | 200 |
| F | 50 |
@amirghaderi , Dynamic axis has three options, one is for the direct query.
Bookmarks or unpivot group columns
Dynamically change chart axis in Power BI
bookmark -https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
https://www.youtube.com/watch?v=6jeSIRpjv0M
https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!