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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jcountryman
Helper I
Helper I

Need advice working with multiple Nested Joins

Have several tables that need Joining to a single 'master'. Assuming there are no steps between each join, what is the best practice?

 

  1. Repeated Table.NestedJoin(), then a series of Table.ExpandTableColumn() operations? 
  2. Or several steps of Table.ExpandTableColumn(Table.NestedJoin())?
2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @jcountryman ,

Based on my test, you may use the second way to deal with your data and refer to blow issue:

https://community.powerbi.com/t5/Desktop/Merging-a-single-table-to-multiple-tables-at-once/td-p/4494...

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, but that doesn't quite address my question. Which is more efficient?

  1. #"Step1" = Table.NestedJoin(MASTER,{"UID"},TABLE_1,{"UID"},"SUB_TABLE_1"),
    #"Step2" = Table.NestedJoin(#"Step1",{"UID"},TABLE_2,{"UID"},"SUB_TABLE_2"),
    #"Step3" = Table.NestedJoin(#"Step2",{"UID"},TABLE_3,{"UID"},"SUB_TABLE_3"),
    #"Step4" = Table.ExpandTableColumn(#"Step3","SUB_TABLE_1",{"Col2","Col3"}),
    #"Step5" = Table.ExpandTableColumn(#"Step4","SUB_TABLE_2",{"Col4","Col5"}),
    #"Step6" = Table.ExpandTableColumn(#"Step5","SUB_TABLE_3",{"Col6","Col7"})

     

  2. #"Step1" = Table.ExpandTableColumn(
    Table.NestedJoin(MASTER,{"UID"},TABLE_1,{"UID"},"SUB_TABLE_1"),
    "SUB_TABLE_1",
    {"Col2","Col3"}
    ), #"Step2" = Table.ExpandTableColumn(
    Table.NestedJoin(#"Step1",{"UID"},TABLE_2,{"UID"},"SUB_TABLE_2"),
    "SUB_TABLE_2",
    {"Col4","Col5"}
    ), #"Step3" = Table.ExpandTableColumn(
    Table.NestedJoin(#"Step2",{"UID"},TABLE_3,{"UID"},"SUB_TABLE_3"),
    "SUB_TABLE_3",
    {"Col6","Col7"}
    )

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.