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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
hill
Helper I
Helper I

Sort in Matrix

I have this matrix, and I find that I can only change the sorting of stock_name and Total  by click them, as you can see the small triangle below.

But I also want to see the sorting of addition, new, reduction, soldall columns. 

Is that achievable? and If so, how to do that? 

Thanks in advance.

hill_0-1599637378728.png

 

1 ACCEPTED SOLUTION
lkalawski
Resident Rockstar
Resident Rockstar

Hi @hill

If in the Columns field (in matrix seeetings) you have added a field with the values "addition", "new", "reduction" and "soldall", unfortunately this columns cannot be sorted.
To enable sorting, you need to create a separate measure for each 'category' and then add it in the Values field (in the matrix settings).



_______________
If I helped, please accept the solution and give kudos! 😀

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@hill , Looking at the screenshot not very clear. But if you have used a column on the column group of the matrix . then it will sort ascending or sort on sort column. So create a sort column and mark it as the sort column for the column used.

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

Sort Column = Switch( true(),

[column] ="New",1,

[Column] ="addition" ,2,

//add other

)

 

Marj this as sort column. rest will happen automatically

Created month year sort in this video -https://youtu.be/Qt0TM-4H09U

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

thanks, though seems that your solution is for another problem!

lkalawski
Resident Rockstar
Resident Rockstar

Hi @hill

If in the Columns field (in matrix seeetings) you have added a field with the values "addition", "new", "reduction" and "soldall", unfortunately this columns cannot be sorted.
To enable sorting, you need to create a separate measure for each 'category' and then add it in the Values field (in the matrix settings).



_______________
If I helped, please accept the solution and give kudos! 😀

Thanks and it works well!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.