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
markluky
New Member

Excel formulas don't follow after adding a column to powerbi query

Hi community,

 

I have a powerquery table that aggregates date from multiple source files and pastes the resulting table in an excel spreadsheet. Then, I have a dashboards and calculations that link to that table and works properly.

 

The issue: When I add a new column to all the source files (same for all files), the excel calculations do not correctly follow (unlike if you simply insert a column in Excel). I thought the solution was simply to add a column to the table (in the same position) before overwriting the table with the new query, but actually it keeps the manually added column and then adds also the new column from the data files, which means my formulas all get messed up again.

 

Is there a mechanism in which I can add a column to the source files and the resulting table, and my excel formulae, that link to the resulting table, adapt dynamically? I know changing all my formulas to INDEX/MATCH rather than XLOOKUP would help but these formulae are to complicated for my clients to manage in the future.

 

Not able to share the file because company private data. Thank you very much.

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @markluky ,

 

Not sure I follow what the issue is exactly.

Are your Excel formulas in the following format?

= queryName[@queryColumnName1] + queryName[@queryColumnName2]

 

If they are, then there should be no issue with the Excel formulas as they reference actual field names. Excel doesn't care what columns you have, as long as the table contains the one(s) it's looking for.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
markluky
New Member

I didn't know we could call queries values that way. I tried it and it worked! Thank you so much.

BA_Pete
Super User
Super User

Hi @markluky ,

 

Not sure I follow what the issue is exactly.

Are your Excel formulas in the following format?

= queryName[@queryColumnName1] + queryName[@queryColumnName2]

 

If they are, then there should be no issue with the Excel formulas as they reference actual field names. Excel doesn't care what columns you have, as long as the table contains the one(s) it's looking for.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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.