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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DM0010
Regular Visitor

Combining multiple tables in one visualization

Hello everyone!

 

I recently started to use Power BI at my work for more insightful visualizations of certain financials. I'm getting to know the program by watching (and reading) a lot of tutorials. Now I want to visualize an OPEX-evolution over several years. The problem is that the different years are all seperated in their own table (CY 2018, ..., CY 2022), which I think makes it impossible to visualize it directly. I think I have to make a combined table. The problem is I don't know how to. I tried the UNION function, but I get the error message that not all tables have the same amount of columns. Is there a solution for this, where I don't have to change the amount of columns?

 

Many thanks in advance!

1 ACCEPTED SOLUTION
NikhilChenna
Continued Contributor
Continued Contributor

Hi @DM0010 , it is simple. if all the tables column names are same.
1. Go to Power Query Editor select all the tables from your left hand side queries pane using Ctrl. 
2. After that click on Append Queries button (Combine section) above ribbon . Attaching screenshot for your reference.

NikhilChenna_0-1669284023254.png

3. Refer this link too for more details ,
https://learn.microsoft.com/en-us/power-query/append-queries

 

Regards,
Nikhil Chenna 

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

 

View solution in original post

4 REPLIES 4
v-jianboli-msft
Community Support
Community Support

Hi @DM0010 ,

 

What is the connection mode of your data?

If you can't use power query, maybe DAX could help you. Could you please provide a simple sample about your data? 

Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-jianboli-msft
Community Support
Community Support

Hi @DM0010 ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The problem is not solved yet, due to the fact that there is a problem with my table-source (ODBC). Error IM002 occurs (Data source name not found and no default driver specified). Maybe this is the case because the ODBC was set up by a third party (not the company that I work for)

NikhilChenna
Continued Contributor
Continued Contributor

Hi @DM0010 , it is simple. if all the tables column names are same.
1. Go to Power Query Editor select all the tables from your left hand side queries pane using Ctrl. 
2. After that click on Append Queries button (Combine section) above ribbon . Attaching screenshot for your reference.

NikhilChenna_0-1669284023254.png

3. Refer this link too for more details ,
https://learn.microsoft.com/en-us/power-query/append-queries

 

Regards,
Nikhil Chenna 

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.