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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
acmwib
New Member

Power Query from sharepoint list row shifting error

I run a query in Excel to get data from a Sharepoint list. In the columns to the right of the sharepoint data in excel, I have manual entries that I need to remain linked with the same row through data refreshes. Right now, the manual entry on the last row just keeps being moved to the new last row when new items are added. For example, I can start with something that looks like this in Excel:

 

Sharepoint Column     Manual Entry Column

Item 1                           A

Item 2                           B

 

If I add an Item 3 to the Sharepoint list and then refresh the data in excel to import it, I end up with 

Sharepoint Column     Manual Entry Column

Item 1                           A

Item 2                           

Item 3                           B

 

What I'm going for is

Sharepoint Column     Manual Entry Column

Item 1                           A

Item 2                           B

Item 3                           

 

Hopefully that makes sense. I'd really appreciate any insight on this problem

1 ACCEPTED SOLUTION
edhans
Community Champion
Community Champion

If I understand the issue, you cannot do this. The data coming from Power Query will not retain the same row number as manually entered data.

You will need to either put your manual data in another table with some sort of index that you can merge on - so "Item 1" for example. 

Then in PQ, merge the SharePoint table with the Excel manual table and use your manually added column.

You can see more about merging here. Merge queries (Power Query) (microsoft.com)



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

3 REPLIES 3
edhans
Community Champion
Community Champion

If I understand the issue, you cannot do this. The data coming from Power Query will not retain the same row number as manually entered data.

You will need to either put your manual data in another table with some sort of index that you can merge on - so "Item 1" for example. 

Then in PQ, merge the SharePoint table with the Excel manual table and use your manually added column.

You can see more about merging here. Merge queries (Power Query) (microsoft.com)



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Ah, good catch @edhans. After reading the post through a couple more times, I think you are dead on.  



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Community Champion
Community Champion

@acmwib What does your Excel query look like?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors