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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Brjt1
Frequent Visitor

How to sort in Power Query

I’ve been working on sorting the date table's month column in chronological order within the data lake setup. Since I’m using Gen2, sorting the tables directly in Power BI isn’t an option because it’s all enabled on the backend. I tried creating a custom IF statement, and it organizes correctly if I retrieve the data through a dataflow using get data. However, when accessing the same data via the data lake, the custom columns appear, but the sorting doesn’t work.

Given these challenges, would it be acceptable to use the get data option from the dataflow instead of the data lake? My concern is ensuring a consistent and reliable sorting experience. Since the company will rely on the method I recommend, I want to propose the best approach.

1 ACCEPTED SOLUTION
Brjt1
Frequent Visitor

I figured it out you sort thru the data modeling tab in the data lake

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Sorting rows is one of the most expensive and often futile actions in Power Query.  It breaks streaming ( requires loading of the entire data frame) and is totally ignored in the downstream systems.

 

The best sort is the one you don't do.

I would prefer to sort it in power bi but the issue is when you pull from the data lake it does not allow you the option to sort in power bi since the table section is enabled. So I have to figure out how to show month in chronological order in power query Gen2.

 

Brjt1
Frequent Visitor

I figured it out you sort thru the data modeling tab in the data lake

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric 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.