Refreshing power query re-orders adjacent columns

Sevalle

New Member
Joined
Mar 31, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I used Power Query to extract data from a file and reformat it into something easier for the user to understand.
1648726750384.png

I then added additional fields to the output table and asked the user to fill out these fields with details not available in the original data source, one of these fields uses a formula to add a default answer: "Y" as the majority of entries would have that as the answer.
1648727037968.png

One user sorted column A (Name) before entering the details
1648727065724.png

Now, weirdly, when the power query that generated columns A and B is refreshed it completely changes the order of the cells in column C & D
1648727189432.png

I can get around this by asking the users not to sort columns A & B or by adding the sort to the query itself, but I'm wondering if there is a better way.
The actual data set has several columns and i'd like to avoid putting restrictions on the user.

Any ideas/help regarding this would be greatly appreciated.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Have a look at the table design tab and select properties. Check the "Preserve Column Sort Order/Filter" option. I suspect that might be where the problem is.
 
Upvote 0

Forum statistics

Threads
1,223,666
Messages
6,173,673
Members
452,527
Latest member
ineedexcelhelptoday

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top