Values hard-coded after query runs is dislocated when data source updates

freelensia

New Member
Joined
Jul 2, 2017
Messages
18
Hi,

I have a table called "SITES" like this:
Code:
Company  Site
freelensia www.freelensia.com
google     www.google.com
mrexcel   mrexcel.com

The table is then loaded into Power Query and displayed as table SITE2

In table SITE2, I have added a new column with hard-coded text like this:
Company Site Country
freelensia www.freelensia.com Vietnam
google www.google.com USA
mrexcel mrexcel.com USA
[/CODE]

Now back at table SITE, a new row is added:
Code:
Company  Site
freelensia www.freelensia.com
fiverr       www.fiverr.com
google     www.google.com
mrexcel   www.mrexcel.com

When I refresh table SITE2, I get this:
Company Site Country
freelensia www.freelensia.com Vietnam
fiverr www.fiverr.com USA
google www.google.com
mrexcel mrexcel.com USA
[/CODE]

As you can see for some reason the field Country is messed up.

Is there a way to tell Power Query to reserve the extra table in the same location? Perhaps we can tell Power Query that "Company" is the ID field and is unique on this table?

Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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