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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors