Skip to main content

Power BI

Needs Votes

Matrix - Sort columns by value

Vote (1075) Share
's profile image

on 11 May 2016 22:35:30

Matrix currently doesn't allow you to sort the columns based on designating values as being a priority above the column field names.
For example, my field in the columns section results in three columns. If you add two sets of values, you are forced to see: Column 1, Value 1, Value 2, Column 2, Value 1, Value 2, etc. Like in a Pivot Table, you should be able to prioritize values so that it shows as: Column 1, Column 2, Column 3, Value 1, Column 1, Column 2, Column 3, Value 2.

Comments (73)
's profile image Profile Picture

Michelle Guevara on 06 Jan 2023 19:57:12

RE: Matrix - Sort columns by value

It's 2023... is this still not an option?

's profile image Profile Picture

Andrew Ben2 on 23 Feb 2022 02:56:01

RE: Matrix - Sort columns by value

needed when crossfiltering between tables and matrix. matrix provides one vision and the detail is in the tables.

's profile image Profile Picture

Cindy Botchis on 14 Dec 2021 14:12:15

RE: Matrix - Sort columns by value

Many of our visuals are done by value then year in the matrix form and this is not possible in Power BI without messing with the tables. We've been instructed to switch from Tableau to Power BI, but without this simple item, it won't be happening.

Instead of:
2021 2022
Market Revenue Company Revenue Share % Market Revenue Company Revenue Share %

We need:
Market Revenue Company Revenue Share %
2021 2022 2021 2022 2021 2022

's profile image Profile Picture

Zeke Marti on 14 Sep 2021 21:26:07

RE: Matrix - Sort columns by value

Perhaps I am missing the point, but doesnt the menu on the top right of the visual allow for a Sort By on any of the Values columns?



 

's profile image Profile Picture

Jeff Masse on 14 May 2021 01:22:57

RE: Matrix - Sort columns by value

While not a direct solution, there is a simple workaround to this problem, it requires just two steps:
1. Create a new column in your table called "Sort Order". This columns needs to map 1:1 to the original column. This Sort By column should be in ascending order in the order you want your original column to be ordered.
2. Use Power BI's "Sort by" feature to sort your original column by the new "Sort Order" column you just created.

For example, if you had Year in the columns of a matrix. You could get them in descending order by creating a new column Sort Order = -Year. Then use the Sort By feature in Power BI to sort Year by your new Sort Order column.

's profile image Profile Picture

Steve Perkins on 11 May 2021 20:42:31

RE: Matrix - Sort columns by value

To add to this, I have a matrix that displays calendar years as columns and would like the ability to sort these years from descending or ascending for example (Can currently be done in Excel Power Pivot but not Power BI)

Department 2017 2018 2019 2020 2021
Sales Value Value Value Value Value
Accounting Value Value Value Value Value

OR

Department 2021 2020 2019 2018 2017
Sales Value Value Value Value Value
Accounting Value Value Value Value Value

's profile image Profile Picture

Stacy Swisher on 09 Oct 2020 19:14:49

RE: Matrix - Sort columns by value

The lack of basic features like the inability to not sort a matrix with column headers provides ample arguments from business partners to not utilize power bi.

's profile image Profile Picture

Sau D on 30 Sep 2020 15:48:07

RE: Matrix - Sort columns by value

The ability to click on a column header of a Matrix and sort the results is a feature that would significantly improve the data visualization capabilities for our end users.

Without the ability to click and sort, I find that users are spending a lot of time scrolling up and down. E.g. To find the lowest value or highest value. This is very unproductive.

Thank you.

's profile image Profile Picture

Max M on 17 Sep 2020 08:38:02

RE: Matrix - Sort columns by value

Please add this functionality! It is very much needed.

's profile image Profile Picture

Vinay on 16 Aug 2020 04:20:35

RE: Matrix - Sort columns by value

I am looking for this feature on Matrix visual to sort the values based on the columns.
Example if any table column values are having Top 50 and Last 50, when these are kept on the Matrix visual columns, Top 50 and Last 50 columns are created those we can't sort with those fields in Matrix visual.