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
sharpedogs
Advocate II
Advocate II

Merge or add a column from one table to another?

I have two tables with Cost Centers and UserID's. I want to move the details from table A over to table B. 

 

Table 1 - Take the users form table 2 that match table 1 and pull their Cost Center over in a new column

UserCost Center 
chad1111
jeff2222
mat3333
sam4444

   

 

Table 2

UserCost Center 
Chad5555
jeff6666
frank9999
mat8888

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Probably:

 

Column = LOOKUPVALUE('Table 2'[Cost Center ],'Table 2'[User],[User])

 

PBIX attached 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Probably:

 

Column = LOOKUPVALUE('Table 2'[Cost Center ],'Table 2'[User],[User])

 

PBIX attached 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hey Greg, 

This works perfect as a measure, but now that i see the measure in action i realize a measure won't work as i need to do additional transformations on these Cost Centers. So i really need it as a column, instead of a calcualted column. Thats why I was thinking something like a append or merge? 

 

Any ideas? I checked append and thats out of the question, merge looks a bit to much as it looks to merge all the fields?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.