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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Connection to two different databases

Good...

I have a query made to an EXCEL table and I want to get data from a table in POSTGRESQL, which I would like to synchronize later.

As I want to perform the query of both databases, an error comes out that you can not fold over the native query, modify the native query (I do not know what I have to modify) or remove the "EnableFolding" option, which even if I delete it, I still cannot connect.

Thanks in advance.

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Syndicate_Admin ;

To disable native query folding, set the EnableFolding flag to false for Value.NativeQuery() in the advanced editor.

vyalanwumsft_0-1665036426355.png

 

vyalanwumsft_1-1665036426361.png

Solved: PowerBI EnableFolding - Microsoft Power BI Community

Solved: Query Folding - disable? - Microsoft Power BI Community

For scenarios where you get errors because query folding wasn't possible, it is recommended that you try validating your steps as a subquery of your original native query to check if there might be any syntax or context conflicts.
Query folding on native queries - Power Query | Microsoft Learn


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

 

View solution in original post

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @Syndicate_Admin ;

To disable native query folding, set the EnableFolding flag to false for Value.NativeQuery() in the advanced editor.

vyalanwumsft_0-1665036426355.png

 

vyalanwumsft_1-1665036426361.png

Solved: PowerBI EnableFolding - Microsoft Power BI Community

Solved: Query Folding - disable? - Microsoft Power BI Community

For scenarios where you get errors because query folding wasn't possible, it is recommended that you try validating your steps as a subquery of your original native query to check if there might be any syntax or context conflicts.
Query folding on native queries - Power Query | Microsoft Learn


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

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.