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

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

Reply
nleuck
Post Patron
Post Patron

Power BI sorting issue with data connection to Analysis Services

Hello All,

 

There seems to be an issue with how Power BI sorts numeric month values from a Live Connection to Analysis Services.  If I select Month Number from my Date table (in our database this value is set as integer) and place it in a table visual this is the order I recieve:

 

4, 8, 12, 2, 1, 7, 6, 3, 5, 11, 10, 9

 

If I switch to DESC order I get:

 

9, 10, 11, 5, 3, 6, 7, 1, 2, 12, 8, 4

 

Why isn't Power BI sorting these as a numeric value (ex. 1, 2, 3, etc...)? Why is Power BI still treating it like text? The value is set to integer in our database.

 

Any help or solutions would be greatly appreciated!

 

Thanks,

5 REPLIES 5
LivioLanzo
Solution Sage
Solution Sage

Have you check if this column is using the 'Sort By Column' feature?

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

You can't use Sort by Column when you are using a live connection to Analysis Services. All features in the Modeling tab are greyed out.

I know, I meant to check on SSAS side

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

It's sorted in chronological order.

Anonymous
Not applicable

@nleuck,

In my scenario, Month number shows in an expected order in Power BI Desktop. Please make sure that your monthnumber field is sorted correctly on SSAS side. And you can post question about SSAS sort in SSAS forum to get better support.

1.PNG

Regards,
Lydia

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.