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

View all the Fabric Data Days sessions on demand. View schedule

Reply
justadashboard
Regular Visitor

Matrix sorting does not work when I add an attribute to a column?

I have a matrix where I'm trying to sort by the value.  In the first screenshot the matrix has a field in the Rows and a measure in the Values, and the sorting obviously works.

justadashboard_1-1742479793344.png

 

Howeveronce I add a field to the Columns, and then attempt to use the sort by feature when clicking the 3 dots, the sort becomes all out of sync.  Any ideas here?  I checked all the corresponding data types and all the fields/values involved come from just one singular dataset.  Is this a common problem with PBI matrix visuals?

 

*Before I click the sort by feature, I did select the column of 2025, just lazy to go back and edit the screenshot*

justadashboard_2-1742479937254.png

2025 column values are not sorted correctly

justadashboard_3-1742480125683.png

 

 

 

1 ACCEPTED SOLUTION

Totally agree.  A calculate measure filtering by year would totally work for what you are wanting to do.

View solution in original post

4 REPLIES 4
d_m_LNK
Resolver III
Resolver III

I have run into this before too.  I think what it's actually doing is sorting by the total Sum of the row it's filtered by and not by the years.  For instance it looks like it's not sorting right for the 2025 year but when you total add the two columns for 2024 and 2025 together it is sorting descending.  If you show the column subtotals on the matrix you will see that those totals are sorting descending.  

 

That's more of a "why it's doing that" answer.  If I find a workaround I will report back.

Appreciate your response.  I'll also report back if I find a solution.  In the meantime I think what I'm going to do is create custom measures for the appropriate timeframes that will get displayed in the matrix.  That way I won't need to drag anything over to the Columns of the matrix.  If everything is a measure then i can click within each column and sort appropriately.

Hi @justadashboard,
I wanted to check if you had the opportunity to review the information provided by @d_m_LNK. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Totally agree.  A calculate measure filtering by year would totally work for what you are wanting to do.

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