Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

how to order the rows in table on power bi

Hi All,

 

I have used a visual  of table to display some numbers on my dashboard. 

The rows in the table are shown in format 
C
D
B
A

But I want to see the rows in 
A
B
C
D format.
Is there any way I can do the sorting for the rows.In the fact table the sorting is not possible 
I saw people mentioned drag and drop but it doesn't work for me

 

2 ACCEPTED SOLUTIONS
Kedar_Pande
Super User
Super User

In your data table (the one that the visual is based on), create a new column that defines the sort order. For example:

Category Sort Order

Category Sort Order
A 1
B 2
C 3
D 4

 

Sort by the New Column:

Go to the Data view.
Select the column you want to sort (e.g., Category).
On the ribbon, select Column tools and then choose Sort by Column.
Choose the newly created Sort Order column.

View solution in original post

Uzi2019
Super User
Super User

Hi @Anonymous 

 

Power bi always sort the data in alphabetical order or numeric order by default. you can only chane asc or desc sort option. if you want other sorting order you have to define one.

 

check the steps.

 

create table in excel  which has only 2 filed measn column A and soting order filed.

import excel table into power bi

 

Uzi2019_0-1728386812340.png

 

link your excel table sorting (column A) with your actual table column value.

 

Uzi2019_1-1728386915336.png

 

select your columnA (sorting) > got to column tool> sort by column> number

Uzi2019_2-1728387124858.png

 

 

 

then take your value from new excel table (sorting) and take rest of the value from your existing table

Uzi2019_3-1728387210970.png

 

 

I hope you understand from the screenshot.

 

Uzi2019_4-1728387362795.png

 

 

I hope i answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

2 REPLIES 2
Uzi2019
Super User
Super User

Hi @Anonymous 

 

Power bi always sort the data in alphabetical order or numeric order by default. you can only chane asc or desc sort option. if you want other sorting order you have to define one.

 

check the steps.

 

create table in excel  which has only 2 filed measn column A and soting order filed.

import excel table into power bi

 

Uzi2019_0-1728386812340.png

 

link your excel table sorting (column A) with your actual table column value.

 

Uzi2019_1-1728386915336.png

 

select your columnA (sorting) > got to column tool> sort by column> number

Uzi2019_2-1728387124858.png

 

 

 

then take your value from new excel table (sorting) and take rest of the value from your existing table

Uzi2019_3-1728387210970.png

 

 

I hope you understand from the screenshot.

 

Uzi2019_4-1728387362795.png

 

 

I hope i answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Kedar_Pande
Super User
Super User

In your data table (the one that the visual is based on), create a new column that defines the sort order. For example:

Category Sort Order

Category Sort Order
A 1
B 2
C 3
D 4

 

Sort by the New Column:

Go to the Data view.
Select the column you want to sort (e.g., Category).
On the ribbon, select Column tools and then choose Sort by Column.
Choose the newly created Sort Order column.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.