Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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,
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.
@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.
Regards,
Lydia
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 82 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |