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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.