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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RichOB
Post Partisan
Post Partisan

Adding a column from one table to another

Hi, I have 2 tables, how can I add the Property_Type from Table into Table1 please?

 

Table1

LocationProperty_IDBed_ID
BrightonProp1Bed1
BrightonProp2Bed2
BrightonProp3Bed3
SouthamptonProp4Bed4
SouthamptonProp5Bed5
SouthamptonProp6Bed6
SouthamptonProp7Bed7


Table2

Bed_IDProperty Type
Bed1Garden View
Bed2Garden view
Bed3Sea View
Bed4Sea View
Bed5Sea View
Bed6Garden view
Bed7Garden view

 

The Table I need

LocationProperty_IDBed_IDProperty Type
BrightonProp1Bed1Garden View
BrightonProp2Bed2Garden view
BrightonProp3Bed3Sea View
SouthamptonProp4Bed4Sea View
SouthamptonProp5Bed5Sea View
SouthamptonProp6Bed6Garden view
SouthamptonProp7Bed7Garden view

 

Thanks

3 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @RichOB 

 

If there's a one-to-many relationship from Table2 to Table1 and the latter is on the many side, you can create this calculated column

RELATED ( Table2[Property_Type] )

 

If there isn't, you can use LOOKUPVALUE

LOOKUPVALUE ( Table2[Property_Type], Table2[Bed_ID], Table1[Bed_ID] )

LOOKVALUE will return an error if there are more than one results for the same Bed_ID. You can add more search criteria. Here's the syntax

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

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

Visharavana
Resolver II
Resolver II

Hi @RichOB 

You can achieve this by two methods. Power Query or DAX
Power Query:
Just merge those two tables using the Bed_ID column.
DAX:
Create a relationship between two tables and use a RELATED function.
Property Type = RELATED(Table2[Property Type])

View solution in original post

V-yubandi-msft
Community Support
Community Support

Hi @RichOB ,

Thank you for reaching out to the Microsoft Fabric Community. I tested your scenario and was able to bring the Property Type from Table2 into Table1 using Bed_ID as the key. In Power BI’s Power Query, you can do this by.

  1. Opening the Power Query Editor.
  2. Selecting Table1 and choosing Home > Merge Queries as New.
  3. In the merge dialog, selecting Table1[Bed_ID] and Table2[Bed_ID] as the join columns, and using a Left Outer Join.
  4. After merging, expanding the new column and choosing only the Property Type field.
  5. Selecting Close & Apply to update your data model.

FYI:

Vyubandimsft_0-1750913173333.png

Thank you for your responses @Visharavana , @danextian .

 

I’ve attached the PBIX file, which includes these steps so you can review the process. If this resolves your issue, you can mark it as the Accepted Solution to assist others.

View solution in original post

6 REPLIES 6
V-yubandi-msft
Community Support
Community Support

Hi @RichOB ,

Has your issue been resolved, or do you require any further information? Your feedback is valuable to us. If the solution was effective, please mark it as 'Accepted Solution' to assist other community members experiencing the same issue.

v-hashadapu
Community Support
Community Support

Hi @RichOB , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

V-yubandi-msft
Community Support
Community Support

Hi @RichOB ,

Could you let us know if your issue has been resolved or if you are still experiencing difficulties? Your feedback is valuable to the community and can help others facing similar problems.


Thank You.

V-yubandi-msft
Community Support
Community Support

Hi @RichOB ,

Thank you for reaching out to the Microsoft Fabric Community. I tested your scenario and was able to bring the Property Type from Table2 into Table1 using Bed_ID as the key. In Power BI’s Power Query, you can do this by.

  1. Opening the Power Query Editor.
  2. Selecting Table1 and choosing Home > Merge Queries as New.
  3. In the merge dialog, selecting Table1[Bed_ID] and Table2[Bed_ID] as the join columns, and using a Left Outer Join.
  4. After merging, expanding the new column and choosing only the Property Type field.
  5. Selecting Close & Apply to update your data model.

FYI:

Vyubandimsft_0-1750913173333.png

Thank you for your responses @Visharavana , @danextian .

 

I’ve attached the PBIX file, which includes these steps so you can review the process. If this resolves your issue, you can mark it as the Accepted Solution to assist others.

Visharavana
Resolver II
Resolver II

Hi @RichOB 

You can achieve this by two methods. Power Query or DAX
Power Query:
Just merge those two tables using the Bed_ID column.
DAX:
Create a relationship between two tables and use a RELATED function.
Property Type = RELATED(Table2[Property Type])

danextian
Super User
Super User

Hi @RichOB 

 

If there's a one-to-many relationship from Table2 to Table1 and the latter is on the many side, you can create this calculated column

RELATED ( Table2[Property_Type] )

 

If there isn't, you can use LOOKUPVALUE

LOOKUPVALUE ( Table2[Property_Type], Table2[Bed_ID], Table1[Bed_ID] )

LOOKVALUE will return an error if there are more than one results for the same Bed_ID. You can add more search criteria. Here's the syntax

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

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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.

Top Solution Authors