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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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