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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
emurtini
New Member

Unable to merge two tables in power query one with direct query and one import

Hi all, 

 

I am looking for advise how to solve the issue below.

I able to merge two tables. Table A from direct query while table B from import and expand the tables couple of days ago. But now we can not merge the tables but we can not expand it. It said the query is not folding

 

First I did : Table.NestedJoin(Source, {"A"}, Y, {"A"}, "Y", JoinKind.LeftOuter).

Then I did: Table.ExpandTableColumn(#"Merged queries", "A", {"B", "C", "D", "E", "F"}, {"B", "C", "D", "E", "F"})

emurtini_0-1755486137966.png

 

 I am not sure what is the cause and how to solve it.

 

 

Thank you.

 

2 REPLIES 2
v-pnaroju-msft
Community Support
Community Support

Thankyou, @AnkitKukreja, for your response.

Hi emurtini,

We appreciate your inquiry through the Microsoft Fabric Community Forum.

We would like to inquire whether have you got the chance to check the solution provided by @AnkitKukreja  to resolve the issue. We hope the information provided helps to clear the query. Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.

Thank you.

AnkitKukreja
Super User
Super User

Hi! @emurtini 

Folding requires all operations to push down to the same source; once you mix Import and DirectQuery, the engine blocks it. It worked earlier (probably when both were in Import mode, or Power Query hadn’t refreshed the folding check yet).
So you can try few suggestions to work across.
1 - Make both tables to Import mode.
2 - Use composite model

  • Keep one table DirectQuery and one Import.

  • Don’t merge in Power Query. Instead: 

  • Load both into the model separately.
  • Define a relationship on column A between them.
  • Use DAX measures or calculated columns to pull fields as needed.

3 - Make both tables DirectQuery (if possible).

 

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors