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
Rjesak
Helper I
Helper I

Grouping a Matrix

I've built a matrix that shows the intersection of two sets of data. So we have a table that includes a statute, a basis, and an issue. My matrix shows basis along the top and issue down the side. It works really well except that I'd like to have the bases organized by statute. I don't need totals by statute - I just would like to show the statute above the basis so that they're sorted correctly. Is there a way to do this? FYI, I've tried adding the statute and the basis as the Columns but it seems to just show the one I put on the top.

 

My data is like this:

Record: statute1, basis3, issue5

Record: statute2, basis2, issue7

Record: statute1, basis3, issue7

Record: statute3, basis4, issue3

Record: statute1, basis1, issue4

(So each record includes a statute (one of five), a basis (a bunch that are organized under the available statutes), and an issue (a bunch).

 

This is what I have:

 Basis 1Basis 2Basis 3
Issue 1nnnnn 
Issue 2nnnnnn 
Issue 3nnnnnnnnn 
    

 

Here's what I want:

 Statute 1Statute 2
 Basis 1Basis 3Basis 2
Issue 1nnnnn 
Issue 2nnnnnn 
Issue 3nnnnnnnnn 
    

 

Any thoughts would be helpful!

 

Robin

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i am confused about your requirement.

Could you please share some sample data screenshot and expected result more clearly?

And i try some data, maybe you want like this?

95.PNG

Expect your reply!

 

Best Regards,

Giotto Zhi

jthomson
Solution Sage
Solution Sage

Sticking both fields as columns should work, you might just need to expand down a level in the visual

If I select Drill down then I can select a datapoint to drill down on but not all of them. If I go down a level in the hierarchy, then the top row disappears and the bases are not sorted by the group anymore.

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