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
admin11
Memorable Member
Memorable Member

How to sort my COMP_ table so the field name display from A to Z ?

Hi All

admin11_0-1611220362647.png

 

8 REPLIES 8
v-shex-msft
Community Support
Community Support

Hi @admin11,

In fact, the data model table not exists column/row index, the 'sort order' that you apply to query tables not apply to the data model.

By default, power bi will display the table field based on ASCII character sort order(a~z), but sometimes it will change the sorting order randomly.

PC2790 's suggestion to add number prefixes should be a good trick to affect the sorting order, but they not work the same as general number values. If you are work with a field amount larger than 10, it sorts the similar character first. (e.g. 1,10,11,2,3,4,5,6,7,8,9 instead of regular sort order)

For these scenarios, I think you can submit an idea to add an option to control the displayed sort order of table fields.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
PhilipTreacy
Super User
Super User

Hi @admin11 

Sorting text like this is done on the first character and then the 2nd character etc. 

So _10 will come before _2 because 1 is less than 2.

If you are trying to order 10 or more text names then you need to use 2 digits for all the numbers, for example, _01, _02, _03 .....  , _09, _10, _11 etc to get the sorting in 'numeric' order.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Singaravelu_R
Resolver III
Resolver III

By default it will be the alphabetical order

PC2790
Community Champion
Community Champion

The fields are always alphabetically sorted.

If you want to change the order, you can rename the fields giving the alphabetically ordered names like prefixing them with numbers.

It is something that might be time consuming but will solve your purpose.

 

Hi PC

if you notice the below screen shot , i just create a field start with AMT , it show at after _6

admin11_0-1611221578755.png

 

PC2790
Community Champion
Community Champion

Try something like this:

PC2790_0-1611222069444.png

 

Hi PC

Great you give an idea how to arrange all dimension in sequences , so that when user click personalise , they can select 1 to 10 dimension. don't need to up and down to look for it.

admin11_0-1611222653657.png

 

Anonymous
Not applicable

By Default it sorts all the fields name of a table alphabetically, in A-Z order.
Also you can see the same in the snap you provided.

 

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.