Share via

Power Query Get Data From Folder. Adding New Column

Anonymous
2023-10-23T14:00:31+00:00

Hello,

I am trying to see if what I am doing is possible. So weekly I get an CSV file with all the same columns and format that I keep in a folder and use power query to combine/edit them all. However occasionally the file will have a new column on the end when we have a new item. In the past I would just go back through all the old files and add this column manually to them. However as I get more and more files (20+) this is becoming time consuming to do. Is there a way to not have to do this? When I just add the new file with the additional column then try to refresh the query it gives me an error. Is this possible or do I need to keep adding these columns manually?

Thank you,

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2023-10-23T18:27:00+00:00

    A screenshot is not helpful. Again: Show us a sample file or at min a sample CSV and your MCode.

    Andreas.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-10-23T15:44:31+00:00

    So for example this is the new column I would need to add for this week.

    Was this answer helpful?

    0 comments No comments
  3. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2023-10-23T15:37:31+00:00

    Show us a sample file or at min a sample CSV and your MCode.

    Andreas.

    Was this answer helpful?

    0 comments No comments