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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jmkvalsund
Helper III
Helper III

Where do I set sort order in PBID?

I've come across some strange settings in PBID. 
I have two PBIX-files, containing the same datasources, OData from Microsoft 365 CRM Online.

One of the files also includes a data source on an Azure SQL Server (file1), the other (file2) has only the OData source.

 

Both files behave equal in the Power Query part, showing the same data formatted the same way.

But in the report part, there are some differences that I don't find where comes from.

 

Her's an example from a filter in file2:

jmkvalsund_0-1702558471414.png

The letter "å" (hopefully you can see it) comes last in the norwegian alphabet. It is commonly replaced by "aa" in english, which may explain the sorting order. 
Heres the same data in file1:

jmkvalsund_1-1702558644519.png

Here the sorting order is as it should be according to my norwegian environment. But as you can see the data in line "FLEXILÅN ANSATTE" is now grouped and added up in the line "Flexilån ansatte", now showing the number 2.

Two questions then:
Why is the sorting order different in the two files?(And where can I cange it so they are equal?)
Why has PBID automatically grouped my two lines "FLEXILÅN ANSATTE" and "Flexilån ansatte" (yes, they mean the same) without me asking for it? There actually is a difference to it.

Anyone who knows?

Regards,
John Martin

 

2 REPLIES 2
Anonymous
Not applicable

HI @jmkvalsund,

I'd like to suggest you take a look at the following link about setting custom sort order if it helps:

Custom Sorting in Power BI 

Regards,

Xiaoxin Sheng

Nithinr
Resolver III
Resolver III

Looks like there is some case sensitivity in model. Please check this article might help you.

Case-sensitive models in Power BI: consequences & considerations — DATA GOBLINS (data-goblins.com)

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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