• 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
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Copy current data to master set instead of Append|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Copy current data to master set instead of Append|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 QueryCopy current data to master set ins…
sp_PrintTopic sp_TopicIcon
Copy current data to master set instead of Append
Avatar
Chris Yap
Member
Members
Level 0
Forum Posts: 162
Member Since:
August 21, 2019
sp_UserOfflineSmall Offline
1
December 12, 2019 - 4:22 pm
sp_Permalink sp_Print

Hi Catalin / Mynda

Currently I got master table,  each month we need to add the latest data in the master table (See attached AppendTables_tobePermanent.xlsx consist of Oct19 + Nov19)

As the Nov19 is always reference to MasterTable (Started from Oct 19),  and when times go by,  there will be a lot of queries,  Dec19, Jan20, Feb20......

i was thinking whether there is a way to break the reference whenever a current month data append to the master,   so I can only maintain a current query that point to a file call current.xlsx (Source),    I just need to put in the data that need to copy/append to the master.

sp_AnswersTopicSeeAnswer See Answer
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1810
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
December 12, 2019 - 4:46 pm
sp_Permalink sp_Print

It's not right Chris.

Use a query from File> From Folder, not a query from excel file for each file in a folder.

whenever a new file is added to that folder, data will be extracted, you will always have a single query that you don't need to update.

Avatar
Chris Yap
Member
Members
Level 0
Forum Posts: 162
Member Since:
August 21, 2019
sp_UserOfflineSmall Offline
3
December 12, 2019 - 5:48 pm
sp_Permalink sp_Print

Hi Catalin,

ooh,  have not tried from folder yet.  so I put Oct 19,  Nov 19 inside the folder,   Append them and whenever there is a new file Dec 19,  it will automatically append to the single query ?

Avatar
Chris Yap
Member
Members
Level 0
Forum Posts: 162
Member Since:
August 21, 2019
sp_UserOfflineSmall Offline
4
December 12, 2019 - 6:03 pm
sp_Permalink sp_Print

Hi Catalin,

I was not familiar with query from File> From Folder

manage to put Oct 19, Nov 19 to a folder

In the query

ContentNameExtensionDate accessedDate modifiedDate createdAttributesFolder Path

Binary.FromText(...) Nov19.xlsx .xlsx 12/12/2019 2:03:15 PM 12/12/2019 2:03:15 PM 12/12/2019 2:02:19 PM [Record] C:\Users\User\Documents\PowerBI & PowerQuery\MyonlineTraining\Listing\
Binary.FromText(...) Oct19.xlsx .xlsx 12/12/2019 2:08:51 PM 12/12/2019 2:08:51 PM 12/12/2019 2:00:39 PM [Record] C:\Users\User\Documents\PowerBI & PowerQuery\MyonlineTraining\Listing\

how to proceed from here ?

Avatar
Chris Yap
Member
Members
Level 0
Forum Posts: 162
Member Since:
August 21, 2019
sp_UserOfflineSmall Offline
5
December 12, 2019 - 6:27 pm
sp_Permalink sp_Print

Hi Catalin,

I did combine with edit

Encounter error for the second excel Oct 19

An error occurred in the ‘Transform Binary from Listing’ query. Expression.Error: The key didn't match any rows in the table.
Details:
Key=Record
Table=Table

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1810
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
6
December 12, 2019 - 6:51 pm
sp_Permalink sp_Print

after you get the list of files in that folder, add a new column with the formula:

=Excel.Workbook([Content])

Then you will expand this new column.

You have a tutorial here: https://www.myonlinetraininghub.com/power-query-get-files-from-a-folder

sp_AnswersTopicAnswer
Answers Post
Avatar
Chris Yap
Member
Members
Level 0
Forum Posts: 162
Member Since:
August 21, 2019
sp_UserOfflineSmall Offline
7
December 14, 2019 - 5:13 pm
sp_Permalink sp_Print

Hi Catalin,

got it thank you very much

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Sherry Fox, Richard West, Dana Friedt, Nada Perovic
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
terimeri dooriyan
Jack Aston
AndyC
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Sopi Yuniarti
LAFONSO HERNANDEZ
Forum Stats:
Groups: 3
Forums: 24
Topics: 6218
Posts: 27265

 

Member Stats:
Guest Posters: 49
Members: 31901
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.