How to Append Data to a Master File

We like master data files very much since it contains all the information we need with sufficient historical data for our analysis. In order to have a master file up to date, we have to add/update the information into the file consistently. How do we automate the actions?

Let us assume your updated information contains in a data table named “tbl_A”. Convert the historical data file into a table and name it as “tbl_H”.

No alt text provided for this image
Updated data in "tbl_A"
No alt text provided for this image
Historical data in "tbl_H"

Create a query to bring tbl_H in as a connection with power query.

No alt text provided for this image
Load tbl_H as connection only

Create another query from tbl_A. Append it with tbl_H. Remove duplications against the primer key column(s). Then load to a new table. Name the table as “Data”

No alt text provided for this image
Load appended data as a table

Edit the first query in Advanced Editor. Change the source from “tbl_H” to “Data” manually. Keep the change and back to data sheet.

No alt text provided for this image
The original scripts for loading historical data
No alt text provided for this image
Revise the data source to table "Data"

Now you can get rid of the original historical data file “tbl_H”. Table “Data” will be the updated dataset.

No alt text provided for this image
Table “Data” will be the updated datase

If you have a new update data file like enclosed, you will have your “Data” being updated by clicking the “Refresh All” commend.

No alt text provided for this image
New data needs to be updated
No alt text provided for this image
Updated table "Data"

Make a YouTube video and publish it

回复
Andrew Distefano

Early Wildfire Detection and Risk Mitigation Advocate, Former Jack of the Telecom trade, Husband and Proud Father.

1 年

Great article Simon! ??

回复

要查看或添加评论,请登录

Simon Lin的更多文章

  • How to Get Quarter Out of A Date or Month Name

    How to Get Quarter Out of A Date or Month Name

    It is easy to have year or month out of a date by either TEXT() or YEAR()/MONTH() in Excel. However, there is no…

    1 条评论
  • Running Data-Validation with Excel

    Running Data-Validation with Excel

    We have two set of data came from different system, S-A and S-B, with the same format and contents. How shall we run…

  • How to Convert a Text Formatted Date into a Real Date

    How to Convert a Text Formatted Date into a Real Date

    As a data analysist, converting data into the specific format should be a basic skill of data migration. We may have a…

  • Synchronizing Hierarchies between Different Reports

    Synchronizing Hierarchies between Different Reports

    When you have a big data set with more than 10 thousands of records and you want to sort out a specific record out of…

  • S&OP Review, Business Case Study

    S&OP Review, Business Case Study

    Business Case: A small Canadian-based company, S Co., that sells coffee machines, primarily in rural communities in…

  • Excel Based Customer Resources Management System

    Excel Based Customer Resources Management System

    Brief For a small company who has neither CRM system nor IT support, what is the proper solution for it to manage the…

    1 条评论

社区洞察

其他会员也浏览了