• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Power Query - Change the input xls|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Power Query - Change the input xls|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryPower Query - Change the input xls
sp_PrintTopic sp_TopicIcon
Power Query - Change the input xls
Avatar
Andrew Whittam

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
November 5, 2020
sp_UserOfflineSmall Offline
1
November 5, 2020 - 3:02 am
sp_Permalink sp_Print

Hi, I have taken over a report that has a long power query in it. Initially it loads the data from an excel file, then does a load of changes to the data before the data gets used in the report.

Now I know need to change the input file: different file name, different location. The data in sheet is the same data with exactly same column names.

I have tried various methods to change the source data - changing the M code in the advanced editor and changing the data source settings.

Whatever I do I a message along the following:

Expression.Error: The key didn't match any rows in the table.
Details:
Key=
Item=back_end_source
Kind=Sheet
Table=[Table]

* back_end_source is the name of the xls and the sheet. It was the name of the sheet in the old data source.

Anybody have any ideas?

Thanks

Andrew

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
November 5, 2020 - 10:40 am
sp_Permalink sp_Print

Hi Andrew,

Is the sheet name in the new file the same as the old file? This is important too and the likely cause of the error.

Mynda

Avatar
Andrew Whittam

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
November 5, 2020
sp_UserOfflineSmall Offline
3
November 5, 2020 - 9:19 pm
sp_Permalink sp_Print

Hi Myanda, The sheet name is the same. 

I did actually manage to "persuade" it to work. I noticed that I was missing 1 column. I added the missing column and then instead of the existing error I got a message saying something like "XYZ not found". The missing column did exist. I edited the M code in the advanced editor and deleted any reference to the said column that was missing. This happened a couple of times till it all ran through.

It doesn't fit well with me that this can be a solution. 

Surely I'm missing something?

Any help appreciated 🙂

Thanks

Andrew

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4513
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
November 6, 2020 - 8:19 am
sp_Permalink sp_Print

Glad you found it, Andrew. That is the only solution. Power Query is expecting the same file layout and has these references hard coded, so if there's even a space or capitalization out of place, the query will break.

sp_AnswersTopicAnswer
Answers Post
Avatar
Andrew Whittam

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
November 5, 2020
sp_UserOfflineSmall Offline
5
November 6, 2020 - 7:18 pm
sp_Permalink sp_Print

Thanks Myanda. 

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Sherry Fox, Cassie Bernier
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 215
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Ngoc Qui Nguyen
Clement Mansfield
Rose .
Bindu Menon
Baruch Zemer
Purple RainbowBenefactor
MOTH Junkie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6349
Posts: 27772

 

Member Stats:
Guest Posters: 49
Members: 32317
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.