Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
amirghaderi
Helper IV
Helper IV

Group by slicer

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.

 

ItemGroup1Group2Price
AAALL200
BAAGG300
CBBEE400
DCCEE100
EDDEE200
FBBLL500

 

Grouped by Group2

EE700
GG300
LL700
  
Grouped by Group1 
AA500
BB900
CC100
DD200

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Picture1.png

 

https://www.dropbox.com/s/ny43sbbqvc7648f/amir.pbix?dl=0 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

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

Jihwan_Kim
Super User
Super User

Picture1.png

 

https://www.dropbox.com/s/ny43sbbqvc7648f/amir.pbix?dl=0 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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?

 

 

ItemGroup1Group2Price
AAALL200
BAAGG300
CBBEE400
DCCEE100
EDDEE200
F  50
amitchandak
Super User
Super User

@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/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors