cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Back2Basics
Helper IV
Helper IV

Merge not working

I keep getting the following error:
Query 'Merge2' (step 'Expanded Workbook(2)') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.

This is the merged query:
let
Source = Table.NestedJoin(#"Matching(3)", {"Unique ID"}, #"Workbook(2)", {"Unique ID"}, "Workbook(2)", JoinKind.RightOuter),
#"Expanded Workbook(2)" = Table.ExpandTableColumn(Source, "Workbook(2)", {"Unique ID", "What WG SFS Intervention level is intervention best suited to? (Dropdown) See note!", "What WG thematic outcome(s) does the intervention deliver? (Dropdown - select all that apply in descending order of delivery magnitude)"}, {"Unique ID.1", "What WG SFS Intervention level is intervention best suited to? (Dropdown) See no", "What WG thematic outcome(s) does the intervention deliver? (Dropdown - select al"})
in
#"Expanded Workbook(2)"

 

 

I have tried lots of different things. Looked at https://www.excelguru.ca/blog/2015/03/11/power-query-errors-please-rebuild-this-data-combination/  but can't get it to work. 

2 REPLIES 2
KT_Bsmart2gethe
Super User
Super User

Hhi @Back2Basics ,

 

Please check if any error in queries/steps highlighted in red below:

Source = Table.NestedJoin(#"Matching(3)", {"Unique ID"}, #"Workbook(2)", {"Unique ID"}, "Workbook(2)", JoinKind.RightOuter),

 

If you merge 2 queries into a new one, it usually refers to the query name which does not usually start with "#".

 

Regards

KT

v-jingzhang
Community Support
Community Support

Hi @Back2Basics 

 

It seems the step 'Expanded Workbook(2)' only refers to the 'Source' step, so it looks a little weird here. Can you remove the step 'Expanded Workbook(2)' and see if there is any error when it only has the Source step?

 

Best Regards,
Community Support Team _ Jing

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors