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

An error occurred in the 'Transform File' query. Expression.Error: The column 'Units' of the...

Hello Community,

 

I've run into some issues when trying to change folder locations of my source data in a Power BI file that I'm essentially duplicating for another distribution center. As far as I can tell, the file structure is almost exactly the same, and what differences there are, are being accounted for in both the Helper Query and the Main Query, but when I connect to the new file, it says a specific column of the table wasn't found. I check the data, and the column is definitely there. Here are some screenshots. I've had to blur some of the contents, sorry.

Helper query: Clearly shows the 'Units' column is there.

Whodathunkit_0-1706115886281.png

Main query that uses the Helper Query to get all data from the sheets in that folder:

Whodathunkit_2-1706116812489.png

Advanced Editor to show all steps:

Whodathunkit_1-1706116079232.png

I'm really not sure what to do to resolve this. I've only seen a couple mentions of this when searching google and almost all of them state to either remove the "Renamed Columns" or "Changed Type" steps. I've tried both, but the error seems to be occuring before both of those, so I can't really see how that would help. 

I've read that changing it from reading column names to positions might help, but that seems a tad complicated for something that should be relatively simple.

 

Let me know your thoughts.

Thanks,

Tyler

 

1 REPLY 1
Anonymous
Not applicable

Hi @Whodathunkit 

The picture you offered that the table name is' Transform sample file', but in your step, your table name is 'Transform file' please make sure your table name is right.

 

Best Regards!

Yolo Zhu

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.