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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


Go to My LinkedIn Page


View solution in original post

4 REPLIES 4
v-yetao1-msft
Community Support
Community Support

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.


Go to My LinkedIn Page


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/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.