Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
50 | |
32 | |
27 | |
26 | |
25 |
User | Count |
---|---|
61 | |
49 | |
29 | |
24 | |
23 |