Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

How do I append and update overlapping data as new versions come in?

$
0
0

Let's say I have these two sets of data in Excel files:

 

Set 1.xlsSet 2.xls
DateSales
11/1/16100
11/2/16105
11/3/16110
11/4/16115
11/5/16120
11/6/16125
11/7/16130
11/8/16135
11/9/16140
11/10/16145
11/11/16150
11/12/16155
11/13/16160
11/14/16165
DateSales
11/8/16200
11/9/16210
11/10/16220
11/11/16230
11/12/16240
11/13/16250
11/14/16260
11/15/16270
11/16/16280
11/17/16290
11/18/16300
11/19/16310
11/20/16320
11/21/16330

 

 

Each covers two weeks of daily data with one overlapping week. I'd like to blend the two sets so that I have Week 1 from the Set 1, Week 3 from the Set 2, and Week 2 from Set 2 as it is the most recent version of that overlapping week. I think of this as appending and updating data.

 

If I do a straight Union, the result has two entries for each of the overlapping days. 

 

How can I alter the Union or use another tool to append and update data on an ongoing basis?

 

Thanks!


Viewing all articles
Browse latest Browse all 4999

Trending Articles