cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Arnault_ Regular Visitor
Regular Visitor

Consolidation of 3 CSV with different column structure

Dear All,

 

I am requesting your help. Despite different topics I checked out in the forum I didn't find an easy way to solve my problem.

 

I have created a template with a standard structure (columns are identified with a standard name). I receive flat files based on this template (CSV, TXT) from my partners and I combine the files within Power BI. All the files are located in a specific folder, then I used "get data / folder" and "load and edit the files", to get it in Power BI.

 

It used to work until one of my partner decided to add additional columns in its file. This shouldn't be a problem since I still have the columns I want. The fact is that these news columns have changed the order of the columns (not the name) and the process of loading is not working anymore, Power BI seems to not recognize the new columns and stops loading...

 

I was wondering how I could fix that effectively without creating several queries (which is an option). I thought about importing an empty table with the "desired headers" only, to force Power BI to only accept the specificied columns and ignore the additional ones.

 

Well, I am looking for advices. What would you recommend?

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
v-yulgu-msft Super Contributor
Super Contributor

Re: Consolidation of 3 CSV with different column structure

Hi @Arnault_ ,

 

Below links may helpful to your scenario:

Combine files with structure change

Load file from folder with different column names

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft Super Contributor
Super Contributor

Re: Consolidation of 3 CSV with different column structure

Hi @Arnault_ ,

 

Below links may helpful to your scenario:

Combine files with structure change

Load file from folder with different column names

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 179 members 2,060 guests
Please welcome our newest community members: