Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Arnault_
Resolver III
Resolver III

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
v-yulgu-msft
Employee
Employee

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
Employee
Employee

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.