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

Unable to sort matrix

I have a matrix with 2 columns in the rows section, 1 column in the columns section and 3 columns in the values section. I attempted to sort the matrix in ascending order with the 2nd level row. However, it is still sorted by the 1st level row. Any suggestions on how to resolve this?

1 ACCEPTED SOLUTION

Hi @busybee 

Go to Transform data, sort "user" column (the 2 rd column in row) on ascending, 

Capture7.JPG

then add an index column from 1,

Group rows as below, then expand columns and rename them

Capture8.JPG

Capture9.JPG

since  every 1st column in row has many diffrent 2 rd column in row,(one part has many  users), i use the first user as index to order part.

then close&&apply, matrix as below:

Capture10.JPGCapture11.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@busybee , Matrix can only be sorted one column. and you using column (Pivot), then you can only sort on grand total column of the values.

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

I set the matrix to sort by the 2nd column in the rows section in ascending order. However, the matrix is still sorted by the 1st column in the rows section. Is it not possible to sort the matrix by the 2nd column? 

Hi @busybee 

Go to Transform data, sort "user" column (the 2 rd column in row) on ascending, 

Capture7.JPG

then add an index column from 1,

Group rows as below, then expand columns and rename them

Capture8.JPG

Capture9.JPG

since  every 1st column in row has many diffrent 2 rd column in row,(one part has many  users), i use the first user as index to order part.

then close&&apply, matrix as below:

Capture10.JPGCapture11.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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