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
gushal
Frequent Visitor

Populate table 1 with data from table 2

Hi,

 

I want to populate data in a new column in Table1 based on data in Table2.

 

Example:

 

Table1:

ColumnA:

11111

11111

22222

22222

33333

44444

 

Table2:

ColumnA:           ColumnB:

11111                 Zone1

22222                 Zone2

33333                 Zone1

44444                 Zone3

 

So I want to add a new column in Table1 and populate the zones from columnB in table 2. I need to match ColumnA in Table1 with ColumnA in Table2 and fetch the data in ColumnB in Table2 based on matching values.

 

How do I do that?

 

Thanks in advance!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gushal , a new column in table 1

 

maxx(filter(Table2,Table2[ColumnA] = table1[ColumnA]), Table2[ColumnB])

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @gushal 

I suggest having a relationship like the one below. Then writing a formula becomes much easier.

Please check the below picture and the sample pbix file's link down below.

 

Picture3.png

 

New Column CC =
RELATED(Table2[ColumnB])
 
 
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
amitchandak
Super User
Super User

@gushal , a new column in table 1

 

maxx(filter(Table2,Table2[ColumnA] = table1[ColumnA]), Table2[ColumnB])

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.