r/ExcelPowerQuery • u/sudseclipse • Aug 06 '25
Keeping comments aligned to my Power Query table rows?
Hey all, I’m pulling a read-only SharePoint Excel file into Sheet1 via Power Query, then my team adds comments in columns next to it. Problem is, any refresh or filter shuffles the data and mis-aligns our notes.
Tried: • Manual columns next to the table (breaks on filter/refresh) • Mirroring with INDEX formulas (still row-based) • “Analyze in Excel” on Power BI (pivot only
I’ve got a 3-sheet + VBA trick that works, but feels overkill. Anyone know a simpler no-code way to keep comments tied to each record, even after refresh/filter/sort? Thanks!
3
u/declutterdata Aug 06 '25
Hi u/sudseclipse ,
create a unique ID column, if not already in there.
Create a table in in the excel file with a 2-column-table: ID & Comment
In this table the team writes & edits their comments.
Load the table into PQ and do a merge. Done.
Best regards,
Phillip | DeclutterData 🙋🏻♂️
2
u/13ass13ass Aug 27 '25
There’s a trick for this. You add a step where you pull the existing table into a query.
https://youtu.be/duNYHfvP_8U?si=a3KIgj2HIqE-HfRw
1
u/Rezz512 Aug 06 '25
I can't find a better way, so I've resorted to a 2 table and manual update method: