Forum Discussion
Need help in sorting with a Matrix visual
- 8 months ago
Hi there,
In a Power BI Matrix, you cannot directly sort by fields in lower levels of a hierarchy from the UI. The official solution is to use Sort by Column:
Add a calculated column (or a column in your table) that contains the sort order for the field you want to sort.
Select the field in the Rows → go to Column tools → Sort by column → choose the new sort column.
This allows you to sort any row field without adding it to the Values section.
Official Microsoft Reference:
Power BI: Sort a column by another column
Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
Regards,
Rufyda Rahma | Microsoft MIE
ashwinkolte , Put all these fields in field parameters. Use that on the Matrix Row. Sort visual on the Row column. And now the end use can select one or more field in order they want to sort with CTRL+CLick on Field parameter slicer
Check Page 34 of attached file after Signature
I selected Category first
With the field parameter's new sort feature, it should work
Persisted sorting for field parameters
https://www.youtube.com/watch?v=Gd_4EwUwHbw&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L&index=1