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
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.

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.