Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello all. I'm hoping someone can help me with a problem I've been trying to solve for a week now. What I'm am trying to do is combine multiple CSV files into a single table from SharePoint. The issue is that some of the CSVs are missing columns. This isn't an issue I can solve upstream sadly or I would do that. I do have this working in Power BI desktop; however, replicating it with a Data flow step-by-step has not worked and is giving me a missing column error (I do need the column). What I'm hoping for Power Query/Data Flow to be able to do is what panda's can do which is just fill in the missing column values with nulls where the columns don't exist.
Solved! Go to Solution.
Hi @DataStraine ,
Do you want the merge to be done directly in the data flow? Can you provide me with the general structure of the table?
I have also found some similar posts, please refer to them to see if them help you.
If what I have provided does not solve the problem for you,could you please provide the structure of each csv file that needs to be combine and the code to be applied when creating the dataflow.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DataStraine ,
Do you want the merge to be done directly in the data flow? Can you provide me with the general structure of the table?
I have also found some similar posts, please refer to them to see if them help you.
If what I have provided does not solve the problem for you,could you please provide the structure of each csv file that needs to be combine and the code to be applied when creating the dataflow.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have files that do not have the same structure. Unfortunately, I cannot force them to have the same structure. If I were to combine these files with pandas, this wouldn't be a problem because it treats missing columns as null values. Is there a way to make a data flow work similarly?
Hi @DataStraine ,
In Power Query, To combine files, it's imperative that they all have the same structure and the same extension. All the files used in this example have the same structure and extension (.csv).
Please refer to the following document to see if it helps you.
My favorite clean and simple way to combine csv files in Power BI
Merge CSVs in Python with different columns
Reading data from CSV files with different columns
If what I have provided does not solve the problem for you,could you please provide the structure of each csv file that needs to be combine and the code to be applied when creating the dataflow.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!