I feel like this shouldn't be a difficult issue, but I am newer to SSIS and am having trouble finding a solution. I am trying to load two columns of data, but each month I get a new file with an additional column, and a new header. For example, starting in January I receive a file with two columns:
| Location | Jan-21 |
|---|---|
| Texas | 100 |
| Maine | 500 |
Then in February I receive a file like the below:
| Location | Jan-21 | Feb-21 |
|---|---|---|
| Texas | 100 | 250 |
| Maine | 500 | 450 |
Each month a new column is added with new data, but I only need to load the newest column's data. I can't figure out how to do this in SSIS, is it possible?. I'm loading from an Excel source to a staging table in a database with two columns (Location & Total).