How to Sort Slicer by Another Column in Power BI

When we add data to Power BI, we can sort the data in ascending or descending order. But in this case, I want something different. The marketing team wants to see sales data grouped and ordered by Customer Location so they can quickly understand which locations are performing better.

To achieve this, we need to sort the Sales column based on Customer Location by using the Sort by Column functionality in Power BI Desktop.

In this Microsoft Power BI tutorial, we will see how to sort the slicer by another column in Power BI.

Sort Slicer by Another Column in Power BI

Let us see how to sort a slicer by another column within the same data table in the Power BI report.

In this example, I am creating a Power BI report using sales table data. From this table, I am using two columns: Customer Location and Sales. Customer Location will sort sales values.

To do this, follow the steps below:

  1. Open Power BI Desktop and load the data table using the Get Data option.
  2. Once the data has been loaded, choose the Table view.
power bi sort slicer by another column
  1. Please select the column you want to sort. In my case, this is sales.
  2. Then, under the Column tools, expand the sort by column and select the customer location:
Sort Slicer Value By A Different Column
  1. Now, in the Report section, select the Power BI slicer visual from the visualization and drag and drop the Customer Location field from the fields pane.
  2. In the same way, select the Line Chart visual and then drag and drop the Sales and Product names fields in it as below:
Power Bi sort slicer by another column
  1. Now, sort any values in the Power BI slicer visual; it filters and displays the sales data in the Line chart visual.
  2. The screenshot below shows the sales value chart for the selected customer location in the Power BI report.
Power Bi sort slicer by another column example

In the same way, we can select different customer locations from the Power BI slicer visual, and it filters the sales value based on the selection.

Example of Power Bi sort slicer by another column

This is how to sort a slicer by another column within the same data table in a Power BI report.

You may like the following Power BI tutorials:

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

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