cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Combining files in Power BI (appending or union all equivalent)

Hello,

 

I have a question re: combining some data sets and I am hoping someone could please advise?

 

I need to combine 5 different tables in power bi, potentially these will be in an xls / csv format prior to loading.

 

The columns in each of the tables are the same but not all tables will have the same combinations of columns (see eg screen shot below and explanation next )-

 

  • Table 1 will have the complete combination of all columns
  • Table 2 will have fewer columns than table 1
  • Table 3, 4, 5 will have fewer columns that table 2.

 

I realise these could be combined using a union all in sql with place holders added  where required  in the select statements so that the quantity of columns in tables 2, 3,4,5 match table 1 which has all columns.  Would there be a way to do something similar whilst loading the data via power query.  I realise there is an append function  - but does having a different quantity of columns in each table create issues?

 

 

table 1       
        
ABCDEFG 
        
table 2       
ACEFG   
        
table 3       
ABFG    
        
table 4       
ABFG    
        
table 5       
ABFG    

 

 

Regards  & thanks

 

  ML.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Combining files in Power BI (appending or union all equivalent)

Hi,

 

In the Query Editor, the append feature should work without any problem.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Highlighted
Super User IV
Super User IV

Re: Combining files in Power BI (appending or union all equivalent)

Generally now, with Append, common columns will get appended and any columns missing or added between files will be added as appropriate with blanks for the row/column coming from the file without that column.


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
Highlighted
Super User IV
Super User IV

Re: Combining files in Power BI (appending or union all equivalent)

Hi,

 

In the Query Editor, the append feature should work without any problem.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Highlighted
Super User IV
Super User IV

Re: Combining files in Power BI (appending or union all equivalent)

Generally now, with Append, common columns will get appended and any columns missing or added between files will be added as appropriate with blanks for the row/column coming from the file without that column.


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Highlighted
Helper I
Helper I

Re: Combining files in Power BI (appending or union all equivalent)

Thank you this will potentially need to be done for a very large dataset/s knowing that this can be done is great I have done a quick test and this is ok as advised.
Highlighted
Helper I
Helper I

Re: Combining files in Power BI (appending or union all equivalent)

Thank you this will potentially need to be done for a very large dataset/s knowing that this can be done is great I have done a quick test and this is ok as advised.

Highlighted
Post Prodigy
Post Prodigy

Re: Combining files in Power BI (appending or union all equivalent)

Just out of curiosity did appending large data set files (including SQL data source related files) take super long for you?

 

Highlighted
Helper I
Helper I

Re: Combining files in Power BI (appending or union all equivalent)

No real problems with this as yet because the sources are still relatively small (>10K records).

 

Regards,

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors