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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ramees_123
Helper IV
Helper IV

Sort the table order in Power BI table visual

I have the below table visual in Power BI with filed values like "ORR 1", ORR 2, etc.,

 

I need to sort it in ascending. When I do it ORR 11 comes after ORR 1 instead of ORR 2. How to tackle this ?

 

ORR.jpg

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ramees_123 , You need to create a sort column. and mark that as a sort column

 

refer for steps

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

or refer my video : https://www.youtube.com/watch?v=KK1zu4MBb-c&t=83s

View solution in original post

3 REPLIES 3
DataVitalizer
Super User
Super User

Hi @Ramees_123 

 

It's obvious, try formatting the secong part of your ORR column by adding leading digits in order to get ORR 01 instead of ORR 1

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated  

Hi @Ramees_123 

 

You can create a new calculated column and use it in your visual

ORRSorting = LEFT(Table[ORR],3)&" "&FORMAT(CONVERT(RIGHT(Table[ORR],LEN(Table[ORR])-3),INTEGER),"0000")

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated

amitchandak
Super User
Super User

@Ramees_123 , You need to create a sort column. and mark that as a sort column

 

refer for steps

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

or refer my video : https://www.youtube.com/watch?v=KK1zu4MBb-c&t=83s

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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