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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Union of 2 tables based on several columns

Hi everyone,

 

I looking for help to union 2 tables, it starts to get over my head. I would like to present on a same graphic the CAPEX spend vs the budget each month.

 

I have this first table with my budget per month:

Projetct nameBusiness / IT CAPEXDateAmount ($)
Project #1Business CAPEXJANUARY 23$450 000
Project #1IT CAPEXJANUARY 23$450 000
Project #2Business CAPEXJANUARY 23$450 000
Project #2IT CAPEXFEBRUARY 23$450 000

 

I have a second table with what has actually been spend each month on each project :

Project nameBusiness / IT CAPEXRequest byDateAmount
Project #1Business CAPEXAJANUARY 2023$150 000
Project #1Business CAPEXBJANUARY 2023$50 000
Project #1IT CAPEXCJANUARY 2023$70 000
Project #1Business CAPEXAFEBRUARY 2023$40 000
Project #2IT CAPEXRJANUARY 2023$40 000
Project #2IT CAPEXAFEBRUARY 2023$20 000

 

I would like to be able to consolidate the data in one table in order to be able to display a chart showing whether the project is under or over the budget month after month. 

 

Would you have any idea how this can be done in PowerBI?

 

Many thanks for the support this community may offer.

 

Kindest regards

 

 

1 ACCEPTED SOLUTION
CalebR
Resolver I
Resolver I

I would relate these two tables together. 
Create a new "Full name"column in Table1 & Table 2 that concats the "Project Name" & "Business/ IT name" together. That will allow you a 1 to many relationship to join them on. Then its as simple as throwing the Full Name column into a visual, drag the original budget field next to it. Then create a SumofSpent measure that takes the sum of amount from table2. Should end up with something like this: 

FullNameBudgetSpent
Project#1 Business Capex450000200000

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks a lot CalebR, it worked perfectly!

No problem glad I could help!

CalebR
Resolver I
Resolver I

I would relate these two tables together. 
Create a new "Full name"column in Table1 & Table 2 that concats the "Project Name" & "Business/ IT name" together. That will allow you a 1 to many relationship to join them on. Then its as simple as throwing the Full Name column into a visual, drag the original budget field next to it. Then create a SumofSpent measure that takes the sum of amount from table2. Should end up with something like this: 

FullNameBudgetSpent
Project#1 Business Capex450000200000

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors