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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
saturation
Frequent Visitor

Pull values from 2 tables into a 3rd table

I'm new to Power BI. I'm trying to create a 3rd table that takes columns from the first 2 tables so I can add some additional calculations on those "joined" values. Maybe there's a better way....But here's a sample of the two tables:

 

TABLE1

UnitID  |    COST

 

TABLE2  (there's a 1-1  relationship with UnitID to TABLE1)

UnitID   |   NUMOFUNITS

 

TABLE3 

COST  |  NUMOFUNITS |   TOTAL

 

I have TABLE3 created, but what function do I use to pull those columns from the matching rows from TABLE1 AND TABLE2?

 

1 ACCEPTED SOLUTION

Hi Nathan,

 

I was actually able to accomplish this using the "Merge Queries" - now I have a table that contains values from both tables. Thank you for your help!

View solution in original post

4 REPLIES 4
Nathaniel_C
Community Champion
Community Champion

Hi @saturation ,

 

Starting from scratch, Summarize might be better. Modeling tab Select New Table then added a total column. 
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

 

 

 

 

Table3 = SUMMARIZE(Table1,Table1[Cost],Table2[NUMOFUNITS]  )

summarize.PNG





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

Proud to be a Super User!




Hi Nathan,

 

I was actually able to accomplish this using the "Merge Queries" - now I have a table that contains values from both tables. Thank you for your help!

Nathaniel_C
Community Champion
Community Champion

Hi @saturation ,

 

You should be able to use LOOKUPVALUE()

LOOKUPVALUE( <result_columnName>, <search_columnName>, <search_value>[, <search_columnName>, <search_value>]…[, <alternateResult>])


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




Hi Nathaniel,

 

I'm not familiar with the LOOKUPVALUE function. Are you able to help me apply it directly in this example? Just not sure which values go into which parameters...

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.