How to Sort Column Values in Matrix Visual Power BI?

In a Power BI Matrix visual, we can sort column values in alphabetical order. Very useful for different clients.

A few days ago, one of our clients asked me to design a Power BI report that includes a Matrix visual. The Matrix displays the ‘Products’ in a random order, whereas they wanted the values to be sorted in alphabetical order to display them in the report.

We can achieve this using the ‘Sort by’ feature in a Power BI matrix visual.

I will show you here how to sort column values in a Power BI matrix visual with different types of sorting examples, such as:

  • Sort Column Values Alphabetically in Matrix Visual
  • Sort Matrix Column Values Lowest to Highest
  • Sort Column Values from Highest to Lowest
  • Power BI matrix Sort by Multiple Columns

Sort Power BI Matrix Column Values Alphabetically [A-Z, Z-A]

Now, let’s see how to sort column values in the Power BI matrix visual alphabetically, in A-Z and Z-A order.

I have created a matrix visual, as shown in the image below, where the ‘Products‘ are in a random order.

Power BI sort columns in matrix

Now, I wanted to sort the ‘Products‘ present in the Power BI matrix visual in alphabetical order of [A-Z].

You can do this by following the quick steps below:

  1. On the Power BI canvas, select the Matrix visual, and then click on the ‘More options icon‘ [] on the top of the matrix. Expand Sort by -> choose the column to which you want to apply the sort.
  2. Then, click on the ‘Sort ascending‘ option to sort the values in A-Z order.
Sort Power BI Matrix Column Values Alphabetically

Output: Products[A-Z] Order

How to sort columns in power bi matrix
  1. If you want to sort the values in descending order [Z-A], then select the ‘Sort descending‘ option as shown below.
Power bi sort columns in matrix descending

Result: Products in reverse Alphabetical Order

Power bi matrix sort columns

This way, you can sort the matrix column values alphabetically from A to Z in Power BI.

Check out How to Sort Matrix Column Headers in Power BI?

Power BI Matrix Column Values Sorting Highest to Lowest

Let me show you another useful example.

This example demonstrates how to sort the matrix column values from highest to lowest and vice versa.

Here, I will use the same matrix table that is used in the above example, as you can also see in the image below:

Power bi matrix sort columns descending

Within the matrix table presented above, I wanted to sort the values present in ‘Sum of sales 2024′ from Highest to Lowest order.

To do this, see the steps below:

  1. Open the Power BI desktop, select the Matrix visual, and then click on the ‘More options icon‘ [] on the top of the matrix. Expand Sort by -> choose the column to which you want to apply the sort.

Here, I wanted to sort based on ‘Sum of sales 2024‘, so I selected that value.

Sort from highest to lowest column values in Power BI Matrix
  1. Next, I have selected the ‘Sort descending ‘option, as it will sort the values from Highest to Lowest.
Sort highest to lowest column values in Power BI Matrix

Output: Highest to Lowest

Sort Descending Power BI Matrix Column Values

If you want to sort the values present in the matrix table from lowest to highest order, select the Sort Ascending option.

Power BI Matrix Column Values sort Ascending

Output: Lowest to Highest

Power BI Matrix Column Sort Ascending

Power BI Matrix Sort by Multiple Columns

You can’t sort multiple columns together at the Power BI Matrix visual. We can only sort one column in the Power BI Matrix visual. As, this feature is only supported in the Table visual not in the Matrix visual.

Thus, you can do multiple column sorting in a Power BI Table visual.

In this tutorial, I have demonstrated how to sort column values in a Power BI matrix in both ascending and descending order, along with various useful examples. I hope you find this article helpful. Please mention your suggestions in the comments section.

Other Power BI Articles You May Read:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…