cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ARamirez1970
Frequent Visitor

PQ loads rows in a different order as the editor

I have a PQ table that I've sorted in the editor, but when I load it as a table in the Excel file, the rows come out unsorted. What am I doing wrong? (I am selecting Load to a Table, and Add to the Data model)

1 ACCEPTED SOLUTION
v-kalyj-msft
Community Support
Community Support

Hi @ARamirez1970 ,

Glad you solved the problem temporarily by yourself, you can also refer to the solutions in these similar threads:

Solved: Problem with order of rows from query editor to ap... - Microsoft Power BI Community

Power Query does not maintain row order while loading to the Table and - Microsoft Community

Hope it helps!

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-kalyj-msft
Community Support
Community Support

Hi @ARamirez1970 ,

Glad you solved the problem temporarily by yourself, you can also refer to the solutions in these similar threads:

Solved: Problem with order of rows from query editor to ap... - Microsoft Power BI Community

Power Query does not maintain row order while loading to the Table and - Microsoft Community

Hope it helps!

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ARamirez1970
Frequent Visitor

Thanks. It was actually through an index column that I noticed the table was loading in a pseudo-random order. I managed to get rid of it by unchecking "Add to the data model"

lbendlin
Super User
Super User

You are not doing anything wrong.  There is no guaranteed sort order, neither in Power Query nor in Power BI.  Add an index column if you need deterministic behavior.

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors