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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
topazz11
Helper III
Helper III

Combining multiple table with date

Hello,

 

I have 3 tables which contains similar data with month/year and some blank/zero value.

I'd like to combine them as single table.

 

What is the best way to achive this?

 

Thanks,

 

Screenshot 2024-04-29 205530t1.png

 

desired output

 

Screenshot 2024-04-29 205553t2.png

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

You can either merge queries (2x) in PowerQuery, or you can try create a table with DAX. Something like:
CombinedTable = ADDCOLUMNS(Table1, "Actual1", RELATED(Table2[Actual1]), "Actual2", RELATED(Table3[Actual2]))

 

(the above dax would only work if there's a relationship between the date columns)

View solution in original post

2 REPLIES 2
vicky_
Super User
Super User

You can either merge queries (2x) in PowerQuery, or you can try create a table with DAX. Something like:
CombinedTable = ADDCOLUMNS(Table1, "Actual1", RELATED(Table2[Actual1]), "Actual2", RELATED(Table3[Actual2]))

 

(the above dax would only work if there's a relationship between the date columns)

MattAllington
Community Champion
Community Champion

Using power query, load each of the 3 tables and set so they don't load

modify each table so it has a "type" column.  Ie the first table will be type = Plan, second will be Actual1, etc. you do this by adding a custom column and set the value of the column to the type

rename the data column to be called "value". All 3 tables must have exactly the same column names

append the 3 tables together and load. 

you can then build the output you want from this final loaded table. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors