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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

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

@Anonymous , 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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
DataVitalizer
Solution Sage
Solution Sage

Hi @Anonymous 

 

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 @Anonymous 

 

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

@Anonymous , 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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors