Forum Discussion
Combing TXT files with different columns
In Power Query, you can use Merge to bring them altogether. Basically, when you have one or more columns that you want to bring together, you can merge them.
Let me know if you want me to provide further steps.
Theo 🙂
Yes, please! How do you do that exactly? Thank you so much?
- TheoC4 years agoCommunity Champion
Here is a basic tutorial: https://support.microsoft.com/en-us/office/merge-queries-power-query-fd157620-5470-4c0f-b132-7ca2616d17f9
Go to the "Perform a Merge Operation" section.
Hopefully this helps.
Theo 🙂
- PowerBI1234564 years agoPost Partisan
TheoC Thanks! but this requires me bringing in one file at a time right? The folder of files I am bringing will have a new file each week.
- TheoC4 years agoCommunity Champion
PowerBI123456 no, not at all. Just dump the new file into the folder. Below is a screenshot of a folder I use as source for a specific client. Each file has different number of columns, some the same and some different. They're monthly management reports and I generate it, dump it in the folder used as source then move on to the next.
Another client report I've built generates CSV files every 15 mins from an FTP Server and saves them down to a specific location. There are 15,000+ files in this example and over 8GB of data. CSV are pretty much identical to TXTs in their format for Power BI.
Hope this helps and provides context 🙂