Skip to main content

Power BI

Needs Votes

Matrix - Sort rows by value (asc or desc)

Vote (297) Share
Daniel Bartley's profile image

Daniel Bartley on 24 Jul 2015 21:24:43

There is currently no customisation for sorting of matrices. Please copy existing Excel functionality to sort by row name or by value fields ascending or descending.

Comments (33)
Daniel Bartley's profile image Profile Picture

3c5dae0d d1c2-4318-b443-19fbd2590a87 on 05 Jul 2020 23:19:14

RE: Matrix - Sort rows by value (asc or desc)

Are you serious that I can't sort e.g. sales figures in ascending/descending order? This is the most basic feature of a table/matrix I can think of! It's comparable to not being able to send texts on my mobile... Please fix this asap!

Daniel Bartley's profile image Profile Picture

512644b5 3221-41b6-afa5-3292e09f8c60 on 05 Jul 2020 23:18:28

RE: Matrix - Sort rows by value (asc or desc)

Just piling on. A really necessary feature!

Daniel Bartley's profile image Profile Picture

9d93b189 4d96-4831-8d90-53e46fa6a511 on 05 Jul 2020 23:17:34

RE: Matrix - Sort rows by value (asc or desc)

I get the sense that this feature is too hard for the Power BI MDX developers to figure out. I wish they would prove me wrong. :)

Daniel Bartley's profile image Profile Picture

5368f78d bf2f-4c39-a948-78bd02581f70 on 05 Jul 2020 23:16:16

RE: Matrix - Sort rows by value (asc or desc)

Will Power BI resolve this issue? Tableau still reigns supreme

Daniel Bartley's profile image Profile Picture

ef165b4f 1281-425c-b4f6-55247eec84f9 on 05 Jul 2020 23:08:52

RE: Matrix - Sort rows by value (asc or desc)

I need to sort by multi-year matrix with the current year to the left (descending) and my rows by category. Can I really not do this?

Daniel Bartley's profile image Profile Picture

0a220d82 292d-4f08-afb1-a2193fa9e9a1 on 05 Jul 2020 22:59:27

RE: Matrix - Sort rows by value (asc or desc)

This is so fundamental, it's ridiculous. If you are displaying detail or showing values for different categories, you absolutely must be able to sort the rows and columns in a useful way. I am displaying pay grades by job titles, and the following sorting for columns is so ridiculous, it's embarrassing: 0 1 10 2 3 32 33 34 4 48 49 5 6...

Daniel Bartley's profile image Profile Picture

5b463a4f 6272-4155-84cb-fd4ae048cfba on 05 Jul 2020 22:59:03

RE: Matrix - Sort rows by value (asc or desc)

Sorting matrixs table's row value by ascending or descending order is definitely needed.

Daniel Bartley's profile image Profile Picture

10627dff 01a4-4b15-b5b6-c9fcaf847618 on 05 Jul 2020 22:48:30

RE: Matrix - Sort rows by value (asc or desc)

A work around that I have found is to remove the columns the sort your values and add the columns back, however if you need it to interactive this will not be a solution for you.

Daniel Bartley's profile image Profile Picture

b6e60d45 b8a7-e611-80f7-5065f38b21f2 on 05 Jul 2020 22:38:27

RE: Matrix - Sort rows by value (asc or desc)

The same happens to me, if I can solve it ... :(

IF([flagSelect1]"Absolutos",
FORMAT(DIVIDE (
CALCULATE(SUM(sm_matrix[Negativo])),
CALCULATE(SUM(sm_matrix[Negativo]), ALLEXCEPT(sm_matrix, sm_matrix[Semana CampaƱa]))
),"Percent"), FORMAT(CALCULATE(SUM(sm_matrix[Negativo])),"#,##0"))

Daniel Bartley's profile image Profile Picture

cf51f283 212c-4705-bbd3-3104bdee79e5 on 05 Jul 2020 22:36:22

RE: Matrix - Sort rows by value (asc or desc)

It is possible to sort by row name now.
But still not possible to sort by value if you have a field in "Columns". You cannot click on the columns to sort by value, it is only possible on the Total-column.