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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ryoungWH
New Member

Datamart issue - Sorting 1 column by another

I have a powerbi dashboard which connects to a datamart in our app.powerbi.com area.

I have a table on there with dates on it that is sorted in descending order with another field that has the longdate format (10 Jan 2022). In the datamart online, the data is all sorted the way I want it. However, when I connect to the datamart from PowerBI desktop and use a slicer for that table to get the longdate field, the data is now sorted in alphabetical order (01 April 2023, 01 April 2022 etc).

I used to be able to sort one column by another, but that option is now greyed out in the model.

 

I'm running version 2.129.905.0 64-bit (May 2024)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ryoungWH ,

Consider turning the connection to DirectQuery mode (lower right corner of the desktop) and sorting by another column:

vcgaomsft_0-1718072596649.png

vcgaomsft_1-1718072637374.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

5 REPLIES 5
ryoungWH
New Member

Hi

Surely this negates the datamart as it's a local version of the model? Also it won't let me sort descending on the sort field.

Anonymous
Not applicable

Hi @ryoungWH ,

This is more of a limitation in Live Connection. The modeling capabilities in this mode are limited, relying mostly on the data source, and there is no way to sort one column by another.

In Dirctquery you can use Sort one column by another column, which extends some of the modeling capabilities. So this is more related to connection mode.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

 

amitchandak
Super User
Super User

@ryoungWH , you have mark the column as a sort column in the Data mart semantic model view

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit

Thanks for coming back on this - I presume you mean the sematic model online? I can't find an option for sorting the table on a particular field. I can create an exploration and seem to be able to sort it as I want, but is that the same as the datamart?

Anonymous
Not applicable

Hi @ryoungWH ,

Consider turning the connection to DirectQuery mode (lower right corner of the desktop) and sorting by another column:

vcgaomsft_0-1718072596649.png

vcgaomsft_1-1718072637374.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

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.

Top Solution Authors
Top Kudoed Authors