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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
160475
Helper I
Helper I

sorting columns

dears,

good day!! 

 

in my raw data i have this 

160475_0-1672217715376.png

where i have column batch from 1 to 48 and batch sort is the index sort 

when i apply this to power bi it give me this sort 

160475_1-1672217839906.png

can anyone help me ? 

 

thank you!! 

1 ACCEPTED SOLUTION
HiraNegi
Resolver II
Resolver II

Check the datatype of your 'batch sort' field. It should be Number.

Usually if the data type of sort field is Text, then it sorts as you have shown in the screenshot

View solution in original post

5 REPLIES 5
160475
Helper I
Helper I

thank you all i have fixed the issue 

HiraNegi
Resolver II
Resolver II

Check the datatype of your 'batch sort' field. It should be Number.

Usually if the data type of sort field is Text, then it sorts as you have shown in the screenshot

ghoshabhijeet
Solution Supplier
Solution Supplier

@160475  Thanks for sharing your query. For sorting the data correctly follow the steps below:

1. Goto the data view

2. Change the data type of BatchSort to Number

3. Select the column (i.e. BATCH) and then click on the dropdown "Sort by column"

4. Select BatchSort column from the drop down

5. Now, goto the report view and the data should be sorted as expected in the table visual

ghoshabhijeet_1-1672218711837.png

 

NOTE: If the data is still not sorted, then you need to perform additional step, on the table visual select the Sort By as shown in the below snapshot.

ghoshabhijeet_0-1672218689531.png

 

** If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution, so that it comes in top of the search and help others. Thank you !

Good Luck 👍

 

FreemanZ
Super User
Super User

HI @160475 

 

It seems 1, 11, 2 are sorted as Text, please ensure the data type of the column is number. 

amitchandak
Super User
Super User

@160475 , seem like data type is test, make it number

 

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.