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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Chris_23
Helper II
Helper II

Add Index Column doesn't maintain order of previous step

Hello guys,

I have a problem with maintaining the order of each row by adding a index column.

 

The following table:

 

Chris_23_0-1637745844544.png

 

First the column 'Filter' is sorted in ascending order.
Based on this step, an index column should now be added. However, adding it discards the order of the previous step. 

Chris_23_1-1637746033341.png

 

 

I have tried unsuccessfully to work with Table.Buffer.

Chris_23_2-1637746107376.png

 

 

Any ideas how adding an index column preserves the order of the previous step?

 

Kind regards

Chris

1 ACCEPTED SOLUTION
Chris_23
Helper II
Helper II

i have find the problem. Some steps before i already had sorted by column Filter. However that leeded to the mentioned problem. After delete this step all works fine. thanks

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

" After delete this step all works fine. "   ??  What step?

Chris_23
Helper II
Helper II

i have find the problem. Some steps before i already had sorted by column Filter. However that leeded to the mentioned problem. After delete this step all works fine. thanks

Anonymous
Not applicable

I'm having the same problem with Table.Range(). For some reason, the function don't get the right row informed. And when I used Table.AddIndexColumn(), the order of the table rows changes completely. I have no clue why Power Query doesn't maintain the order from one step to another. It doesn't make any sense at all!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.