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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
HasanK
Helper I
Helper I

An error occurred in the ‘Transform File’ query. Expression.Error: The key didn't match any rows in

Dear Comunity,

I am learning and appling PowerBi, Power Query, PowePivot into my business life. This is my first post therfore it may look easy but I could not find proper solution... 

My Question is two part first part is the subject, actually I found the issue but I could not find solution;

- Our customer send every week their sales reports in excel or csv, I have just started to use PowerQuery to combine them but I realised different "table names" causes this error; some excel report sheet name are "prijmy_vydeje_skladem (005)", some prijmy_vydeje_skladem (009), etc.

When I change the name manually, The reports have the same sheet names are recognised by Power Query and not get error for that table...

How can I solve this issue first, there are 53 reports for each previous report.

I will be pleased, if you can you help.

 

Best regards,

Note: I use File/Folder as New Source in Power Query and locate the folder contains weekly reports

Annotation 2020-05-02 131659.png

Annotation 2020-05-02 131659_1.png

Annotation 2020-05-02 131659_2.png

Annotation 2020-05-02 132320_3.png

1 ACCEPTED SOLUTION

Hello Greg,

Thank your for your advice. After many hour spent I found the soluiton and applied on my case with little modification, it isueful and easy. Here is the solution Combine Files With Inconsistent Columns In Power Query 

View solution in original post

4 REPLIES 4
lalilonso
New Member

Hi,

 

I have the same issue, did you find a solution?

Hi Lalilonso,

I put the solution video link in latest message, if it does not solve could you give an example?

Greg_Deckler
Super User
Super User

Hmm, not fun. Power Query is very touchy about its names. @ImkeF or @edhans may have suggestions.



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hello Greg,

Thank your for your advice. After many hour spent I found the soluiton and applied on my case with little modification, it isueful and easy. Here is the solution Combine Files With Inconsistent Columns In Power Query 

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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