Forum Discussion

DM0010's avatar
DM0010
Regular Visitor
3 years ago
Solved

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!

  • 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.

    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!

     

4 Replies

  • 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.

    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!

     

  • 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.

    • DM0010's avatar
      DM0010
      Regular Visitor

      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)

  • 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.